summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-19 02:26:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-19 02:26:36 +0000
commit56e9e57d28d511e831c8b63407695ff75612c413 (patch)
tree0a29d0c0498f20604198cdd9abbc43064b836d72 /llvm/lib
parent54d62b6d64a8a0f65899a7bd6777dddca7c5025d (diff)
downloadbcm5719-llvm-56e9e57d28d511e831c8b63407695ff75612c413.tar.gz
bcm5719-llvm-56e9e57d28d511e831c8b63407695ff75612c413.zip
Fixed a coalescer bug caused by a typo.
llvm-svn: 48526
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 3c9078e89d6..cc413c3855f 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -365,7 +365,7 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
IntB.removeValNo(BValNo);
for (unsigned i = 0, e = BDeadValNos.size(); i != e; ++i)
IntB.removeValNo(BDeadValNos[i]);
- VNInfo *ValNo = IntB.getNextValue(ALR->start, 0, li_->getVNInfoAllocator());
+ VNInfo *ValNo = IntB.getNextValue(AValNo->def, 0, li_->getVNInfoAllocator());
for (LiveInterval::iterator AI = IntA.begin(), AE = IntA.end();
AI != AE; ++AI) {
if (AI->valno != AValNo) continue;
OpenPOWER on IntegriCloud