[llvm-commits] [llvm] r97752 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Evan Cheng
evan.cheng at apple.com
Thu Mar 4 13:28:09 PST 2010
Author: evancheng
Date: Thu Mar 4 15:28:09 2010
New Revision: 97752
URL: http://llvm.org/viewvc/llvm-project?rev=97752&view=rev
Log:
Run machine licm before machine cse to avoid messing up licm opportunities.
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=97752&r1=97751&r2=97752&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Thu Mar 4 15:28:09 2010
@@ -320,10 +320,10 @@
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",
More information about the llvm-commits
mailing list