Recommit "[LV] Remove unneeded createHeaderBranch.(NFCI)"
authorFlorian Hahn <flo@fhahn.com>
Thu, 31 Mar 2022 12:31:34 +0000 (13:31 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 31 Mar 2022 13:48:32 +0000 (14:48 +0100)
commit8378a71b6cce611e01f42690713fd7b561ff3f30
tree6468ea612ab7113b7e25f6bebcb594f3c747ac9b
parent19246b0779a255d870284d32e5a7487af4f233f6
Recommit "[LV] Remove unneeded createHeaderBranch.(NFCI)"

This reverts the revert commit 2760cdc9c6.

This version pulls in the code to create the vector loop object in VPlan
from D121624.

This is needed because otherwise existing LoopInfo verification will
fail, as a loop block doesn't have in-loop successors now that we
do not replace the branch.

Now that we do not add new loops during skeleton construction, there's
also no need to verify LI there.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp