diff options
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 50dc6d41c1..145aa92a60 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1551,8 +1551,7 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond, // 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. |