[PATCH] D42604: PR36032 fix assert cause by not computed SCEV PredicatedBackEdgeCount
Evgeny Stupachenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 15:00:54 PST 2018
evstupac created this revision.
evstupac added reviewers: a.elovikov, silviu.baranga, dim, dorit.
Herald added a subscriber: sanjoy.
The change fix an assert fail at ScalarEvolutionExpander.cpp (generateOverflowCheck):
const SCEV *ExitCount =
SE.getPredicatedBackedgeTakenCount(AR->getLoop(), Pred);
assert(ExitCount != SE.getCouldNotCompute() && "Invalid loop count");
(generateOverflowCheck is called only from expandWrapPredicate)
by inserting an early check on SCEV PredicateBackEdgeCount when createAddRecFromPHIWithCastsImpl
Repository:
rL LLVM
https://reviews.llvm.org/D42604
Files:
lib/Analysis/ScalarEvolution.cpp
test/Transforms/LoopVectorize/pr35432.ll
test/Transforms/LoopVectorize/pr36032.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42604.131662.patch
Type: text/x-patch
Size: 23245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180126/aff16350/attachment-0001.bin>
More information about the llvm-commits
mailing list