mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 23:20:41 +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);
|
MachineInstr *MI = MBB.getParent()->CloneMachineInstr(Orig);
|
||||||
MI->getOperand(0).setReg(DestReg);
|
MI->getOperand(0).setReg(DestReg);
|
||||||
if (Orig->getOpcode() == ARM::MOVTi16)
|
|
||||||
MI->getOperand(1).setReg(DestReg);
|
|
||||||
|
|
||||||
MBB.insert(I, MI);
|
MBB.insert(I, MI);
|
||||||
}
|
}
|
||||||
|
@ -938,8 +938,7 @@ def MOVi16 : AI1<0b1000, (outs GPR:$dst), (ins i32imm:$src),
|
|||||||
let Inst{25} = 1;
|
let Inst{25} = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
let isReMaterializable = 1, isAsCheapAsAMove = 1,
|
let isAsCheapAsAMove = 1, Constraints = "$src = $dst" in
|
||||||
Constraints = "$src = $dst" in
|
|
||||||
def MOVTi16 : AI1<0b1010, (outs GPR:$dst), (ins GPR:$src, i32imm:$imm),
|
def MOVTi16 : AI1<0b1010, (outs GPR:$dst), (ins GPR:$src, i32imm:$imm),
|
||||||
DPFrm, IIC_iMOVi,
|
DPFrm, IIC_iMOVi,
|
||||||
"movt", " $dst, $imm",
|
"movt", " $dst, $imm",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user