[VPlan] Consolidate replicate region optimizations (NFC).
authorFlorian Hahn <flo@fhahn.com>
Thu, 16 Mar 2023 17:06:44 +0000 (17:06 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 16 Mar 2023 17:06:44 +0000 (17:06 +0000)
commiteca14a810e592be7b6e8d95a77263f5131b338f2
tree5e0e87b1db6934b763be3c60fbfe49f9203566f7
parentcefbc2e0e794847a0634d3ad7ce94a8e72d0569d
[VPlan] Consolidate replicate region optimizations (NFC).

As suggested in D143865, consolidate replicate region creation and
optimization in a single helper that's exposed and used by LV.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.h