[llvm-commits] CVS: llvm/lib/CodeGen/LiveInterval.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 24 16:23:13 PDT 2006
Changes in directory llvm/lib/CodeGen:
LiveInterval.cpp updated: 1.29 -> 1.30
---
Log message:
When replacing value numbers, make sure to compactify the value # space.
---
Diffs of the changes: (+12 -0)
LiveInterval.cpp | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/lib/CodeGen/LiveInterval.cpp
diff -u llvm/lib/CodeGen/LiveInterval.cpp:1.29 llvm/lib/CodeGen/LiveInterval.cpp:1.30
--- llvm/lib/CodeGen/LiveInterval.cpp:1.29 Thu Aug 24 17:43:55 2006
+++ llvm/lib/CodeGen/LiveInterval.cpp Thu Aug 24 18:22:59 2006
@@ -470,6 +470,18 @@
}
}
}
+
+ // Now that V1 is dead, remove it. If it is the largest value number, just
+ // nuke it (and any other deleted values neighboring it), otherwise mark it as
+ // ~1U so it can be nuked later.
+ if (V1 == NumValues-1) {
+ do {
+ InstDefiningValue.pop_back();
+ --NumValues;
+ } while (InstDefiningValue.back() == ~1U);
+ } else {
+ InstDefiningValue[V1] = ~1U;
+ }
}
More information about the llvm-commits
mailing list