]> granicus.if.org Git - llvm/commit
[LV] Prevent interleaving if computeMaxVF returned None.
authorFlorian Hahn <flo@fhahn.com>
Thu, 7 Feb 2019 20:49:10 +0000 (20:49 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 7 Feb 2019 20:49:10 +0000 (20:49 +0000)
commit6bed14d8a45b4e48fffa83a7b11b04e8278c2803
tree72333bf6bd80d746c6ebc1a5e643302287170c8d
parentef001e8e8a76135dfb82d14fce09785fbc526dc1
[LV] Prevent interleaving if computeMaxVF returned None.

As discussed in D57382, interleaving should be avoided if computeMaxVF
returns None, same as we currently do for vectorization.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6477

Reviewers: Ayal, dcaballe, hsaito, mkuper, rengolin

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D57837

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorizationPlanner.h
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/no-interleave-up-front.ll [new file with mode: 0644]