]> granicus.if.org Git - llvm/commit
[LoopVectorize][X86] Clamp interleave factor if we have a known constant trip count...
authorCraig Topper <craig.topper@intel.com>
Wed, 7 Aug 2019 21:44:14 +0000 (21:44 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 7 Aug 2019 21:44:14 +0000 (21:44 +0000)
commit5a370c1ad84ac9e3374b4a1e8c099b38387eeedd
tree38488516a064052a62d5baaee287a6f7e4dc2f87
parentc2ab705011f2e30aa8ca0b706db65979a336e714
[LoopVectorize][X86] Clamp interleave factor if we have a known constant trip count that is less than VF*interleave

If we know the trip count, we should make sure the interleave factor won't cause the vectorized loop to exceed it.

Improves one of the cases from PR42674

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368215 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/pr42674.ll