Skip to content

Commit

Permalink
[LV] Tail-folding, runtime scev checks
Browse files Browse the repository at this point in the history
Now that we allow tail-folding, not only when we optimise for size, make
sure we do not run in this assert.

Differential revision: https://reviews.llvm.org/D66932

llvm-svn: 370711
  • Loading branch information
Sjoerd Meijer committed Sep 3, 2019
1 parent 03c9e13 commit 718f909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2695,8 +2695,8 @@ void InnerLoopVectorizer::emitSCEVChecks(Loop *L, BasicBlock *Bypass) {
if (C->isZero())
return;

assert(!Cost->foldTailByMasking() &&
"Cannot SCEV check stride or overflow when folding tail");
assert(!BB->getParent()->hasOptSize() &&
"Cannot SCEV check stride or overflow when optimizing for size");

// Create a new block containing the stride check.
BB->setName("vector.scevcheck");
Expand Down

0 comments on commit 718f909

Please sign in to comment.