[llvm-commits] [llvm] r46579 - /llvm/trunk/lib/CodeGen/LiveInterval.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 30 14:44:55 PST 2008
Author: evancheng
Date: Wed Jan 30 16:44:55 2008
New Revision: 46579
URL: http://llvm.org/viewvc/llvm-project?rev=46579&view=rev
Log:
Fixed a bug in MergeValueInAsValue() pointed out by David Greene. Replace val# with previous liverange's.
Modified:
llvm/trunk/lib/CodeGen/LiveInterval.cpp
Modified: llvm/trunk/lib/CodeGen/LiveInterval.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveInterval.cpp?rev=46579&r1=46578&r2=46579&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveInterval.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveInterval.cpp Wed Jan 30 16:44:55 2008
@@ -402,9 +402,9 @@
IP = std::upper_bound(IP, end(), Start);
// If the start of this range overlaps with an existing liverange, trim it.
if (IP != begin() && IP[-1].end > Start) {
- if (IP->valno != LHSValNo) {
- ReplacedValNos.push_back(IP->valno);
- IP->valno = LHSValNo; // Update val#.
+ if (IP[-1].valno != LHSValNo) {
+ ReplacedValNos.push_back(IP[-1].valno);
+ IP[-1].valno = LHSValNo; // Update val#.
}
Start = IP[-1].end;
// Trimmed away the whole range?
More information about the llvm-commits
mailing list