summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongbin Zheng <etherzhhb@gmail.com>2017-09-25 18:10:36 +0000
committerHongbin Zheng <etherzhhb@gmail.com>2017-09-25 18:10:36 +0000
commitbbe448abd828b98d22c703fff4325e0251071efa (patch)
tree1d4eb334e62d4dd58abcd6f2456fce07ff05ca88
parent4d801057920a424019c715c98244b79d7a78bd52 (diff)
downloadbcm5719-llvm-bbe448abd828b98d22c703fff4325e0251071efa.tar.gz
bcm5719-llvm-bbe448abd828b98d22c703fff4325e0251071efa.zip
[SimplifyIndvar] Minor change to refine r314125, NFC
llvm-svn: 314130
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyIndVar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index deaddcb3933..5228f067ae1 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -323,6 +323,7 @@ void SimplifyIndvar::replaceSRemWithURem(BinaryOperator *Rem) {
Rem->replaceAllUsesWith(URem);
DEBUG(dbgs() << "INDVARS: Simplified srem: " << *Rem << '\n');
++NumSimplifiedSRem;
+ Changed = true;
DeadInsts.emplace_back(Rem);
}
@@ -398,7 +399,6 @@ void SimplifyIndvar::simplifyIVRemainder(BinaryOperator *Rem, Value *IVOperand,
return;
replaceSRemWithURem(Rem);
- Changed = true;
}
bool SimplifyIndvar::eliminateOverflowIntrinsic(CallInst *CI) {
OpenPOWER on IntegriCloud