[llvm-commits] [llvm] r151056 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Feb 21 05:40:06 PST 2012
Author: d0k
Date: Tue Feb 21 07:40:06 2012
New Revision: 151056
URL: http://llvm.org/viewvc/llvm-project?rev=151056&view=rev
Log:
Fix unsigned off-by-one in comment.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=151056&r1=151055&r2=151056&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Tue Feb 21 07:40:06 2012
@@ -575,7 +575,7 @@
// GEP is inbounds, the final add of the base pointer can have signed overflow
// and would change the result of the icmp.
// e.g. "&foo[0] <s &foo[1]" can't be folded to "true" because "foo" could be
- // the minimum signed value for the pointer type.
+ // the maximum signed value for the pointer type.
if (ICmpInst::isSigned(Cond))
return 0;
More information about the llvm-commits
mailing list