[llvm-commits] [llvm] r96744 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sun Feb 21 10:51:48 PST 2010
Author: stoklund
Date: Sun Feb 21 12:51:48 2010
New Revision: 96744
URL: http://llvm.org/viewvc/llvm-project?rev=96744&view=rev
Log:
Enable assertion to detect cyclic valno references.
This changes the stack overflow in PR6363 to an assertion failure.
Modified:
llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=96744&r1=96743&r2=96744&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Sun Feb 21 12:51:48 2010
@@ -1864,7 +1864,7 @@
// If the VN has already been computed, just return it.
if (ThisValNoAssignments[VN] >= 0)
return ThisValNoAssignments[VN];
-// assert(ThisValNoAssignments[VN] != -2 && "Cyclic case?");
+ assert(ThisValNoAssignments[VN] != -2 && "Cyclic value numbers");
// If this val is not a copy from the other val, then it must be a new value
// number in the destination.
More information about the llvm-commits
mailing list