mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Remove the TII::scheduleTwoAddrSource() hook.
It never does anything when running 'make check', and it get's in the way of updating live intervals in 2-addr. The hook was originally added to help form IT blocks in Thumb2 code before register allocation, but the pass ordering has changed since then, and we run if-conversion after register allocation now. When the MI scheduler is enabled, there will be no less than two schedulers between 2-addr and Thumb2ITBlockPass, so this hook is unlikely to help anything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1352,17 +1352,6 @@ TwoAddressInstructionPass::processTiedPairs(MachineInstr *MI,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// We didn't change anything if there was a single tied pair, and that
|
||||
// pair didn't require copies.
|
||||
if (AllUsesCopied || TiedPairs.size() > 1) {
|
||||
// Schedule the source copy / remat inserted to form two-address
|
||||
// instruction. FIXME: Does it matter the distance map may not be
|
||||
// accurate after it's scheduled?
|
||||
MachineBasicBlock::iterator PrevMI = MI;
|
||||
--PrevMI;
|
||||
TII->scheduleTwoAddrSource(PrevMI, MI, *TRI);
|
||||
}
|
||||
}
|
||||
|
||||
/// runOnMachineFunction - Reduce two-address instructions to two operands.
|
||||
|
||||
Reference in New Issue
Block a user