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.

llvm-svn: 82975
This commit is contained in:
Anton Korobeynikov 2009-09-28 07:26:46 +00:00
parent d77fb17b28
commit 2e54b03741
2 changed files with 1 additions and 4 deletions

View 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);
}

View 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",