mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Revert "Fix PR8612 in the standard spiller as well."
This reverts r119183 which borke the buildbots. llvm-svn: 119270
This commit is contained in:
parent
3d47a3536c
commit
465c07cc66
@ -1136,14 +1136,11 @@ rewriteInstructionForSpills(const LiveInterval &li, const VNInfo *VNI,
|
|||||||
rewriteImplicitOps(li, MI, NewVReg, vrm);
|
rewriteImplicitOps(li, MI, NewVReg, vrm);
|
||||||
|
|
||||||
// Reuse NewVReg for other reads.
|
// Reuse NewVReg for other reads.
|
||||||
bool HasEarlyClobber = false;
|
|
||||||
for (unsigned j = 0, e = Ops.size(); j != e; ++j) {
|
for (unsigned j = 0, e = Ops.size(); j != e; ++j) {
|
||||||
MachineOperand &mopj = MI->getOperand(Ops[j]);
|
MachineOperand &mopj = MI->getOperand(Ops[j]);
|
||||||
mopj.setReg(NewVReg);
|
mopj.setReg(NewVReg);
|
||||||
if (mopj.isImplicit())
|
if (mopj.isImplicit())
|
||||||
rewriteImplicitOps(li, MI, NewVReg, vrm);
|
rewriteImplicitOps(li, MI, NewVReg, vrm);
|
||||||
if (mopj.isEarlyClobber())
|
|
||||||
HasEarlyClobber = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CreatedNewVReg) {
|
if (CreatedNewVReg) {
|
||||||
@ -1202,8 +1199,7 @@ rewriteInstructionForSpills(const LiveInterval &li, const VNInfo *VNI,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (HasDef) {
|
if (HasDef) {
|
||||||
LiveRange LR(HasEarlyClobber ? index.getUseIndex() : index.getDefIndex(),
|
LiveRange LR(index.getDefIndex(), index.getStoreIndex(),
|
||||||
index.getStoreIndex(),
|
|
||||||
nI.getNextValue(SlotIndex(), 0, VNInfoAllocator));
|
nI.getNextValue(SlotIndex(), 0, VNInfoAllocator));
|
||||||
DEBUG(dbgs() << " +" << LR);
|
DEBUG(dbgs() << " +" << LR);
|
||||||
nI.addRange(LR);
|
nI.addRange(LR);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
; RUN: llc < %s -verify-machineinstrs -spiller=standard
|
|
||||||
; RUN: llc < %s -verify-machineinstrs -spiller=inline
|
; RUN: llc < %s -verify-machineinstrs -spiller=inline
|
||||||
; PR8612
|
; PR8612
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user