diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-19 02:26:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-19 02:26:36 +0000 |
commit | 56e9e57d28d511e831c8b63407695ff75612c413 (patch) | |
tree | 0a29d0c0498f20604198cdd9abbc43064b836d72 /llvm/lib | |
parent | 54d62b6d64a8a0f65899a7bd6777dddca7c5025d (diff) | |
download | bcm5719-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.cpp | 2 |
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; |