diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-10-01 23:15:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-10-01 23:15:36 +0000 |
| commit | bec6a9ea1281a0b3b37aece91ab0df21e086af61 (patch) | |
| tree | 55f40e7c3db388537506cb8cc7964e67b0e307ae /lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | c2a5730118acf727032271221398ea1cb903dd3f (diff) | |
When a virtual register is folded into an instruction, keep track of whether
it was a use, def, or both. This allows us to be less pessimistic in our
analysis of them. In practice, this doesn't make a big difference, but it
doesn't hurt either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 40b11f1e8e..6916e96694 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -223,7 +223,7 @@ addIntervalsForSpills(const LiveInterval &li, VirtRegMap &vrm, int slot) { if (MachineInstr* fmi = mri_->foldMemoryOperand(mi, i, slot)) { if (lv_) lv_->instructionChanged(mi, fmi); - vrm.virtFolded(li.reg, mi, fmi); + vrm.virtFolded(li.reg, mi, i, fmi); mi2iMap_.erase(mi); i2miMap_[index/InstrSlots::NUM] = fmi; mi2iMap_[fmi] = index; |
