summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-09 23:14:39 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-09 23:14:39 +0000
commit1115a2b412794afab11a989eec788276a92c0846 (patch)
treeceab52b8f3e313680548783f1bec8a2d3f6a918e /llvm/lib
parentbdad80977b40ce9a833b2373323a5949dd2e5332 (diff)
downloadbcm5719-llvm-1115a2b412794afab11a989eec788276a92c0846.tar.gz
bcm5719-llvm-1115a2b412794afab11a989eec788276a92c0846.zip
Bug fix. ~1U marks the val# dead.
llvm-svn: 40975
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 cead5e5240e..0b3d17823a2 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -645,7 +645,7 @@ bool SimpleRegisterCoalescing::JoinIntervals(LiveInterval &LHS, LiveInterval &RH
// Otherwise, use the specified value #.
LHSValNoAssignments[VN] = RHSValID;
if (VN != (unsigned)RHSValID)
- ValueNumberInfo[VN].def = RHSValNoInfo.def;
+ ValueNumberInfo[VN]->def = ~1U; // Now this val# is dead.
else
ValueNumberInfo[VN] = RHSValNoInfo;
}
OpenPOWER on IntegriCloud