mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
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:
parent
d77fb17b28
commit
2e54b03741
@ -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);
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user