aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SimpleRegisterCoalescing.cpp
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
commit5064c0d5424fae66e67b2b4d96ee7e697042c29b (patch)
tree13db9c9093ccea382c1206b45ae1ad84c9bc7de0 /lib/CodeGen/SimpleRegisterCoalescing.cpp
parent507b1d76e028aba52f2cabce139fa066d67522cb (diff)
downloadexternal_llvm-5064c0d5424fae66e67b2b4d96ee7e697042c29b.tar.gz
external_llvm-5064c0d5424fae66e67b2b4d96ee7e697042c29b.tar.bz2
external_llvm-5064c0d5424fae66e67b2b4d96ee7e697042c29b.zip
Fixed a coalescer bug caused by a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 3c9078e89d..cc413c3855 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/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;