mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Oops. IT block formation pass needs to be run at any optimization level.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efbf306107
commit
8acf67672b
@ -105,8 +105,7 @@ bool ARMBaseTargetMachine::addPreRegAlloc(PassManagerBase &PM,
|
||||
if (OptLevel != CodeGenOpt::None && !Subtarget.isThumb1Only())
|
||||
PM.add(createARMLoadStoreOptimizationPass(true));
|
||||
|
||||
if (OptLevel != CodeGenOpt::None && Subtarget.isThumb2() &&
|
||||
EarlyITBlockFormation)
|
||||
if (Subtarget.isThumb2() && EarlyITBlockFormation)
|
||||
PM.add(createThumb2ITBlockPass(true));
|
||||
return true;
|
||||
}
|
||||
@ -128,9 +127,9 @@ bool ARMBaseTargetMachine::addPreSched2(PassManagerBase &PM,
|
||||
if (OptLevel != CodeGenOpt::None) {
|
||||
if (!Subtarget.isThumb1Only())
|
||||
PM.add(createIfConverterPass());
|
||||
}
|
||||
if (Subtarget.isThumb2())
|
||||
PM.add(createThumb2ITBlockPass());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user