diff options
| author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2019-09-03 08:53:02 +0000 |
|---|---|---|
| committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2019-09-03 08:53:02 +0000 |
| commit | 718f909ccd0bc088c81f8ce9f0988190b5f8e38f (patch) | |
| tree | 3521817e6a4f7a5f97e726b9520c5fe5a755e8f4 /llvm/lib/Transforms/Vectorize | |
| parent | 03c9e139c7a71a0d44e382c0f6ca1064cfd97590 (diff) | |
| download | bcm5719-llvm-718f909ccd0bc088c81f8ce9f0988190b5f8e38f.tar.gz bcm5719-llvm-718f909ccd0bc088c81f8ce9f0988190b5f8e38f.zip | |
[LV] Tail-folding, runtime scev checks
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
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 4f67aa1f322..1db9f920c6e 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -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"); |

