diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-04 21:28:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-04 21:28:09 +0000 |
commit | c46e293e946d109319d382b4547b4f47806d567a (patch) | |
tree | 3b1bfa19dc6d9e3d66dbe35bfec10b6dda859d4c /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | a5f32cb3d3cab0463c407cfd2c4153d5dea4498d (diff) |
Run machine licm before machine cse to avoid messing up licm opportunities.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 33d37f78b5..abf183c7dd 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -320,10 +320,10 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, if (OptLevel != CodeGenOpt::None) { PM.add(createOptimizeExtsPass()); - if (EnableMachineCSE) - PM.add(createMachineCSEPass()); if (!DisableMachineLICM) PM.add(createMachineLICMPass()); + if (EnableMachineCSE) + PM.add(createMachineCSEPass()); if (!DisableMachineSink) PM.add(createMachineSinkingPass()); printAndVerify(PM, "After MachineLICM and MachineSinking", |