[VPlan] Move createReplicateRegion out of VPRecipeBuilder.h. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Sat, 18 Mar 2023 20:30:48 +0000 (20:30 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sat, 18 Mar 2023 20:30:49 +0000 (20:30 +0000)
commit371bb2c9d34aa9b9809de6fcac5d60671f7cafed
treed29c88fc58273952c3ce7d7d4bdb4716417b6355
parent787fbad57e05b5eb225b1b3881f7e84270a8a33f
[VPlan] Move createReplicateRegion out of VPRecipeBuilder.h. (NFC)

The function doesn't use anything from VPRecipeBuilder, so move the
definition to where it is actually used and turn it into a simple static
function.

It also makes the VPRecipeBuilder argument for createAndOptimizeReplicateRegions
unnecessary.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.h