projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5f32cb
)
Run machine licm before machine cse to avoid messing up licm opportunities.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 4 Mar 2010 21:28:09 +0000
(21:28 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 4 Mar 2010 21:28:09 +0000
(21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97752
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LLVMTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LLVMTargetMachine.cpp
b/lib/CodeGen/LLVMTargetMachine.cpp
index 33d37f78b5369842370ba71747436920d75801a3..abf183c7ddc6f0cfb724ca45f1b05fbfb3307eda 100644
(file)
--- 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",