[PATCH] D122835: [SCEV] Removed an unnecessary assertion in SCEV.
Congzhe Cao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 14:27:00 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3a8266902b58: [SCEV] Removed an unnecessary assertion (authored by Yangguang Li <yangguang.li at huawei.com>, committed by congzhe).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122835/new/
https://reviews.llvm.org/D122835
Files:
llvm/lib/Analysis/ScalarEvolution.cpp
Index: llvm/lib/Analysis/ScalarEvolution.cpp
===================================================================
--- llvm/lib/Analysis/ScalarEvolution.cpp
+++ llvm/lib/Analysis/ScalarEvolution.cpp
@@ -8464,11 +8464,6 @@
BECount = getUMinFromMismatchedTypes(
EL0.ExactNotTaken, EL1.ExactNotTaken,
/*Sequential=*/!isa<BinaryOperator>(ExitCond));
-
- // If EL0.ExactNotTaken was zero and ExitCond was a short-circuit form,
- // it should have been simplified to zero (see the condition (3) above)
- assert(!isa<BinaryOperator>(ExitCond) || !EL0.ExactNotTaken->isZero() ||
- BECount->isZero());
}
if (EL0.MaxNotTaken == getCouldNotCompute())
MaxBECount = EL1.MaxNotTaken;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122835.426836.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/a1cdf7c2/attachment.bin>
More information about the llvm-commits
mailing list