diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-13 21:52:57 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-13 21:52:57 +0000 |
commit | 702bcc3bcf197b4a9731542272882bf39822e451 (patch) | |
tree | 5a4f4ce72322d75c5ee47a433c08a1f334508f69 /llvm/lib/CodeGen | |
parent | 162b14f326c82525866efa81238aa256c1c8bafc (diff) | |
download | bcm5719-llvm-702bcc3bcf197b4a9731542272882bf39822e451.tar.gz bcm5719-llvm-702bcc3bcf197b4a9731542272882bf39822e451.zip |
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.
llvm-svn: 161794
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 9a219a6b000..aa601af21b0 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -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. |