mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Make early if conversion dependent upon the subtarget and add
a subtarget hook to enable. Unconditionally add to the pass pipeline for targets that might want to use it. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -776,6 +776,10 @@ bool EarlyIfConverter::tryConvertIf(MachineBasicBlock *MBB) {
|
||||
bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
|
||||
DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n"
|
||||
<< "********** Function: " << MF.getName() << '\n');
|
||||
// Only run if conversion if the target wants it.
|
||||
if (!MF.getTarget().getSubtarget().enableEarlyIfConversion())
|
||||
return true;
|
||||
|
||||
TII = MF.getTarget().getInstrInfo();
|
||||
TRI = MF.getTarget().getRegisterInfo();
|
||||
SchedModel =
|
||||
|
Reference in New Issue
Block a user