summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-15 21:51:51 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-15 21:51:51 +0000
commitbea0b6a0495c8c80ad7d52d4bc28acdee926020b (patch)
tree00f56c09b834b98401cd3be353f97c1e31410f6b /lib/CodeGen/LiveIntervalAnalysis.cpp
parentda663f7b51acdc076eb40cbaf197816ca26ff64c (diff)
downloadllvm-bea0b6a0495c8c80ad7d52d4bc28acdee926020b.tar.gz
llvm-bea0b6a0495c8c80ad7d52d4bc28acdee926020b.tar.bz2
llvm-bea0b6a0495c8c80ad7d52d4bc28acdee926020b.tar.xz
Revert "Fix PR8612 in the standard spiller as well."
This reverts r119183 which borke the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index b77d43fe9a..aa2f965887 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1136,14 +1136,11 @@ rewriteInstructionForSpills(const LiveInterval &li, const VNInfo *VNI,
rewriteImplicitOps(li, MI, NewVReg, vrm);
// Reuse NewVReg for other reads.
- bool HasEarlyClobber = false;
for (unsigned j = 0, e = Ops.size(); j != e; ++j) {
MachineOperand &mopj = MI->getOperand(Ops[j]);
mopj.setReg(NewVReg);
if (mopj.isImplicit())
rewriteImplicitOps(li, MI, NewVReg, vrm);
- if (mopj.isEarlyClobber())
- HasEarlyClobber = true;
}
if (CreatedNewVReg) {
@@ -1202,8 +1199,7 @@ rewriteInstructionForSpills(const LiveInterval &li, const VNInfo *VNI,
}
}
if (HasDef) {
- LiveRange LR(HasEarlyClobber ? index.getUseIndex() : index.getDefIndex(),
- index.getStoreIndex(),
+ LiveRange LR(index.getDefIndex(), index.getStoreIndex(),
nI.getNextValue(SlotIndex(), 0, VNInfoAllocator));
DEBUG(dbgs() << " +" << LR);
nI.addRange(LR);