[LV] Use getVectorLoopRegion to retrieve header. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Fri, 25 Mar 2022 16:57:12 +0000 (16:57 +0000)
committerFlorian Hahn <flo@fhahn.com>
Fri, 25 Mar 2022 16:57:12 +0000 (16:57 +0000)
commite47d22023026085bd8fb836588fd8f53a4c6d10a
tree5c8065e6fcefbaaa145c9de12f3d9831416498b5
parent8f7db763ef7f30ec952bdb00adb6f99f980cb427
[LV] Use getVectorLoopRegion to retrieve header. (NFC)

Update all places that currently assume the entry block to the plan is
also the vector loop header to use getVectorLoopRegion instead.

getVectorLoopRegion will keep doing the right thing when the pre-header
is modeled explicitly (and becomes the new entry block in the plan).
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp