[llvm] [LoopVectorize] Don't replicate blocks with optsize (PR #129265)

John Brawn via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 07:30:27 PDT 2025


================
@@ -4546,6 +4546,12 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
   return false;
 }
 
+static bool hasReplicatorRegion(VPlan &Plan) {
+  return any_of(VPBlockUtils::blocksOnly<VPRegionBlock>(
+                    vp_depth_first_deep(Plan.getEntry())),
----------------
john-brawn-arm wrote:

It looks like that does work.

https://github.com/llvm/llvm-project/pull/129265


More information about the llvm-commits mailing list