forked from OSchip/llvm-project
Run machine licm before machine cse to avoid messing up licm opportunities.
llvm-svn: 97752
This commit is contained in:
parent
bef98689ad
commit
a325e562ee
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue