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 | a325e562eee7bf41ac9583b30a489afecfefc01d (patch) | |
tree | 2ee8f169fbe6ca8bab5ea2c72b6a4d5b8cd5515f /llvm/lib/CodeGen | |
parent | bef98689adae3e3e2d8ccb051005648eac602d68 (diff) | |
download | bcm5719-llvm-a325e562eee7bf41ac9583b30a489afecfefc01d.tar.gz bcm5719-llvm-a325e562eee7bf41ac9583b30a489afecfefc01d.zip |
Run machine licm before machine cse to avoid messing up licm opportunities.
llvm-svn: 97752
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 33d37f78b53..abf183c7ddc 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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", |