Fix thinko in my recent movt commit: it's not safe to remat movt, since it has input...
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 28 Sep 2009 07:26:46 +0000 (07:26 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 28 Sep 2009 07:26:46 +0000 (07:26 +0000)
Disable rematting of it for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.cpp
lib/Target/ARM/ARMInstrInfo.td

index 15c3c393c32b299addd7ed1459e577528edf07db..2ab355b190d5ed3b43b7d87c6ff522ee8fa9f4e6 100644 (file)
@@ -96,8 +96,6 @@ reMaterialize(MachineBasicBlock &MBB,
 
   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);
 }
index 0e9e67709ddabfd73cf4b30fc9fe8a873ef4e4b0..4bc62733d6876b8ce7a8ab45ac5ca6d5c73040ce 100644 (file)
@@ -938,8 +938,7 @@ def MOVi16 : AI1<0b1000, (outs GPR:$dst), (ins i32imm:$src),
   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",