From: Misha Brukman Date: Tue, 29 Jun 2004 23:33:20 +0000 (+0000) Subject: Lower ConstantExpressions before the code generator. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=60f35813fc4ac2a7b86a03024201c734c6a452de;p=oota-llvm.git Lower ConstantExpressions before the code generator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14497 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index f6dd82228be..ad60cb6e1a6 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -52,6 +52,8 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM, // FIXME: Implement the switch instruction in the instruction selector! PM.add(createLowerSwitchPass()); + PM.add(createLowerConstantExpressionsPass()); + PM.add(createPPCSimpleInstructionSelector(*this)); if (PrintMachineCode) @@ -81,6 +83,8 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // FIXME: Implement the switch instruction in the instruction selector! PM.add(createLowerSwitchPass()); + PM.add(createLowerConstantExpressionsPass()); + PM.add(createPPCSimpleInstructionSelector(TM)); PM.add(createRegisterAllocator()); PM.add(createPrologEpilogCodeInserter());