summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-01 23:15:36 +0000
committerChris Lattner <sabre@nondot.org>2004-10-01 23:15:36 +0000
commit1905ae69c116541347eb8058c46a7cc53bde8d9c (patch)
tree445601a95cdbeaed9e4d93bffd7996c4f3663e23 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent79bb240345799ff8d99ec7fcf59e7386027b1df7 (diff)
downloadbcm5719-llvm-1905ae69c116541347eb8058c46a7cc53bde8d9c.tar.gz
bcm5719-llvm-1905ae69c116541347eb8058c46a7cc53bde8d9c.zip
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. llvm-svn: 16632
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 40b11f1e8e1..6916e966949 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud