[llvm-commits] [llvm] r82975 - in /llvm/trunk/lib/Target/ARM: ARMInstrInfo.cpp ARMInstrInfo.td
Anton Korobeynikov
asl at math.spbu.ru
Mon Sep 28 00:26:46 PDT 2009
Author: asl
Date: Mon Sep 28 02:26:46 2009
New Revision: 82975
URL: http://llvm.org/viewvc/llvm-project?rev=82975&view=rev
Log:
Fix thinko in my recent movt commit: it's not safe to remat movt, since it has input reg argument.
Disable rematting of it for now.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp
llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp?rev=82975&r1=82974&r2=82975&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp Mon Sep 28 02:26:46 2009
@@ -96,8 +96,6 @@
MachineInstr *MI = MBB.getParent()->CloneMachineInstr(Orig);
MI->getOperand(0).setReg(DestReg);
- if (Orig->getOpcode() == ARM::MOVTi16)
- MI->getOperand(1).setReg(DestReg);
MBB.insert(I, MI);
}
Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=82975&r1=82974&r2=82975&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Mon Sep 28 02:26:46 2009
@@ -938,8 +938,7 @@
let Inst{25} = 1;
}
-let isReMaterializable = 1, isAsCheapAsAMove = 1,
- Constraints = "$src = $dst" in
+let isAsCheapAsAMove = 1, Constraints = "$src = $dst" in
def MOVTi16 : AI1<0b1010, (outs GPR:$dst), (ins GPR:$src, i32imm:$imm),
DPFrm, IIC_iMOVi,
"movt", " $dst, $imm",
More information about the llvm-commits
mailing list