From: Chris Lattner Date: Wed, 2 Mar 2005 21:56:00 +0000 (+0000) Subject: cleanup the cfg after lsr X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4318a3d0e9d7aa9ab36f376e8c98ee61d5465aaa;p=oota-llvm.git cleanup the cfg after lsr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20410 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 4bc5c50211e..dd40e1333c7 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -75,8 +75,10 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) { bool LP64 = (0 != dynamic_cast(this)); - if (EnablePPCLSR) + if (EnablePPCLSR) { PM.add(createLoopStrengthReducePass()); + PM.add(createCFGSimplificationPass()); + } // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); @@ -120,8 +122,10 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM, } void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) { - if (EnablePPCLSR) + if (EnablePPCLSR) { PM.add(createLoopStrengthReducePass()); + PM.add(createCFGSimplificationPass()); + } // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass());