fix overflow check.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56011 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 50dc6d4..145aa92 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -1551,8 +1551,7 @@
 
   // Check stride constant and the comparision constant signs to detect
   // overflow.
-  if (ICmpInst::isSignedPredicate(Predicate) &&
-      (CmpVal & SignBit) != (CmpSSInt & SignBit))
+  if ((CmpVal & SignBit) != (CmpSSInt & SignBit))
     return Cond;
 
   // Look for a suitable stride / iv as replacement.