See if this fixes llvm-gcc bootstrap.
authorDuncan Sands <baldrick@free.fr>
Tue, 25 Jan 2011 12:15:09 +0000 (12:15 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 25 Jan 2011 12:15:09 +0000 (12:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124184 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ValueTracking.cpp

index c8a3ae893f5879f109d5b334ecb380fd1bad8c1d..98b4489cba73368e7ef5caad131ec80fe6ffba02 100644 (file)
@@ -742,7 +742,8 @@ bool llvm::isKnownNonZero(Value *V, const TargetData *TD, unsigned Depth) {
     // If X and Y are both non-negative (as signed values) then their sum is not
     // zero.
     if (XKnownNonNegative && YKnownNonNegative)
-      return true;
+      return false;
+//      return true;
 
     // If X and Y are both negative (as signed values) then their sum is not
     // zero unless both X and Y equal INT_MIN.