[VPlan] Wrap vector loop blocks in region.
authorFlorian Hahn <flo@fhahn.com>
Sat, 20 Nov 2021 17:59:47 +0000 (17:59 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sat, 20 Nov 2021 17:59:48 +0000 (17:59 +0000)
commitcf8efbd30e430fdd87a8120430d8e44ce0909f76
tree299157b7814208d70a1f2306ea0112347bb14c2b
parent337948ac6e2260fc4d5a1901b4f667a2a0a52ee3
[VPlan] Wrap vector loop blocks in region.

A first step towards modeling preheader and exit blocks in VPlan as well.
Keeping the vector loop in a region allows for changing the VF as we
traverse region boundaries.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D113182
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-gep.ll
llvm/test/Transforms/LoopVectorize/first-order-recurrence-sink-replicate-region.ll
llvm/test/Transforms/LoopVectorize/icmp-uniforms.ll
llvm/test/Transforms/LoopVectorize/vplan-dot-printing.ll
llvm/test/Transforms/LoopVectorize/vplan-printing.ll
llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge-vf1.ll
llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll