mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
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
This commit is contained in:
parent
a5f32cb3d3
commit
c46e293e94
@ -320,10 +320,10 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
|||||||
|
|
||||||
if (OptLevel != CodeGenOpt::None) {
|
if (OptLevel != CodeGenOpt::None) {
|
||||||
PM.add(createOptimizeExtsPass());
|
PM.add(createOptimizeExtsPass());
|
||||||
if (EnableMachineCSE)
|
|
||||||
PM.add(createMachineCSEPass());
|
|
||||||
if (!DisableMachineLICM)
|
if (!DisableMachineLICM)
|
||||||
PM.add(createMachineLICMPass());
|
PM.add(createMachineLICMPass());
|
||||||
|
if (EnableMachineCSE)
|
||||||
|
PM.add(createMachineCSEPass());
|
||||||
if (!DisableMachineSink)
|
if (!DisableMachineSink)
|
||||||
PM.add(createMachineSinkingPass());
|
PM.add(createMachineSinkingPass());
|
||||||
printAndVerify(PM, "After MachineLICM and MachineSinking",
|
printAndVerify(PM, "After MachineLICM and MachineSinking",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user