[llvm-commits] [llvm] r88868 - /llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Chris Lattner
sabre at nondot.org
Sun Nov 15 12:01:25 PST 2009
Author: lattner
Date: Sun Nov 15 14:01:24 2009
New Revision: 88868
URL: http://llvm.org/viewvc/llvm-project?rev=88868&view=rev
Log:
fix a logic error that would cause LVI-JT to miscompile
some conditionals
Modified:
llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=88868&r1=88867&r2=88868&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Sun Nov 15 14:01:24 2009
@@ -550,7 +550,7 @@
return False;
} else if (Pred == ICmpInst::ICMP_NE) {
// !C1 != C -> true iff C1 == C.
- Res = ConstantFoldCompareInstOperands(ICmpInst::ICMP_EQ,
+ Res = ConstantFoldCompareInstOperands(ICmpInst::ICMP_NE,
Result.getNotConstant(), C, TD);
if (Res->isNullValue())
return True;
More information about the llvm-commits
mailing list