diff options
| author | Max Kazantsev <max.kazantsev@azul.com> | 2017-07-05 09:44:41 +0000 |
|---|---|---|
| committer | Max Kazantsev <max.kazantsev@azul.com> | 2017-07-05 09:44:41 +0000 |
| commit | ebe56283bc1a8d9111fe776c63016a7e60d43cc5 (patch) | |
| tree | 6b384438c9b36421fd215b28603774734790b822 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
| parent | 795eee96b3c60bbfbdfafba1d8562db07d82b3a9 (diff) | |
| download | bcm5719-llvm-ebe56283bc1a8d9111fe776c63016a7e60d43cc5.tar.gz bcm5719-llvm-ebe56283bc1a8d9111fe776c63016a7e60d43cc5.zip | |
Revert "[IndVars] Canonicalize comparisons between non-negative values and indvars"
This patch seems to cause failures of test MathExtras.SaturatingMultiply on
multiple buildbots. Reverting until the reason of that is clarified.
Differential Revision: https://reviews.llvm.org/rL307126
llvm-svn: 307135
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp index 77f035a5a65..ec8b0d42626 100644 --- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -262,10 +262,6 @@ void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { ICmp->setPredicate(InvariantPredicate); ICmp->setOperand(0, NewLHS); ICmp->setOperand(1, NewRHS); - } else if (ICmpInst::isSigned(Pred) && - SE->isKnownNonNegative(S) && SE->isKnownNonNegative(X)) { - DEBUG(dbgs() << "INDVARS: Turn to unsigned comparison: " << *ICmp << '\n'); - ICmp->setPredicate(ICmpInst::getUnsignedPredicate(Pred)); } else return; |

