diff options
author | Max Kazantsev <max.kazantsev@azul.com> | 2018-03-29 07:54:59 +0000 |
---|---|---|
committer | Max Kazantsev <max.kazantsev@azul.com> | 2018-03-29 07:54:59 +0000 |
commit | 18f93894dbcbd64403e0ec349bff4cd237892e59 (patch) | |
tree | 84cb52df4eebddf8a8a6051f6c92d15c36a6a65b /llvm/lib | |
parent | eda329c5732d2fc77f2a1f300262ce6488c9e77a (diff) | |
download | bcm5719-llvm-18f93894dbcbd64403e0ec349bff4cd237892e59.tar.gz bcm5719-llvm-18f93894dbcbd64403e0ec349bff4cd237892e59.zip |
[NFC] Fix meaningless assert in SCEV
llvm-svn: 328764
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 2b96b989a80..a7675972db8 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -8720,13 +8720,13 @@ bool ScalarEvolution::isKnownViaInduction(ICmpInst::Predicate Pred, // if LHS contains unknown non-invariant SCEV then bail out. if (SplitLHS.first == getCouldNotCompute()) return false; - assert (SplitLHS.first != getCouldNotCompute() && "Unexpected CNC"); + assert (SplitLHS.second != getCouldNotCompute() && "Unexpected CNC"); // Get init and post increment value for RHS. auto SplitRHS = SplitIntoInitAndPostInc(MDL, RHS); // if RHS contains unknown non-invariant SCEV then bail out. if (SplitRHS.first == getCouldNotCompute()) return false; - assert (SplitRHS.first != getCouldNotCompute() && "Unexpected CNC"); + assert (SplitRHS.second != getCouldNotCompute() && "Unexpected CNC"); // It is possible that init SCEV contains an invariant load but it does // not dominate MDL and is not available at MDL loop entry, so we should // check it here. |