diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-12-05 09:05:34 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-12-05 09:05:34 +0000 |
| commit | 64b3baaaeab3c215026ea95870a22e2e7536f4bc (patch) | |
| tree | 2fc2643568af60b1b002ab528ab81de9bd291c85 /llvm/lib | |
| parent | d7de56ac93ac274a146c799cf7280ee4039a4ec4 (diff) | |
| download | bcm5719-llvm-64b3baaaeab3c215026ea95870a22e2e7536f4bc.tar.gz bcm5719-llvm-64b3baaaeab3c215026ea95870a22e2e7536f4bc.zip | |
Clobber more bugs.
llvm-svn: 44610
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index cc2298a898c..b237247f7f1 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1221,7 +1221,6 @@ addIntervalsForSpills(const LiveInterval &li, // Original def may be modified so we have to make a copy here. vrm must // delete these! ReMatDefs[VN] = ReMatDefMI = ReMatDefMI->clone(); - vrm.setVirtIsReMaterialized(li.reg, ReMatDefMI); bool CanDelete = true; if (VNI->hasPHIKill) { @@ -1309,9 +1308,11 @@ addIntervalsForSpills(const LiveInterval &li, if (CanFold && !Ops.empty()) { if (tryFoldMemoryOperand(MI, vrm, NULL, index, Ops, true, Slot,VReg)){ Folded = true; - if (FoundUse > 0) + if (FoundUse > 0) { // Also folded uses, do not issue a load. eraseRestoreInfo(Id, index, VReg, RestoreMBBs, RestoreIdxes); + nI.removeRange(getLoadIndex(index), getUseIndex(index)+1); + } nI.removeRange(getDefIndex(index), getStoreIndex(index)); } } |

