[llvm] [LoopVectorize] Don't replicate blocks with optsize (PR #129265)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 27 12:10:14 PDT 2025
================
@@ -4513,6 +4513,14 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
return false;
}
+static bool hasReplicatorRegion(VPlan &Plan) {
+ for (auto *VPRB : VPBlockUtils::blocksOnly<VPRegionBlock>(
+ vp_depth_first_deep(Plan.getEntry())))
+ if (VPRB->isReplicator())
+ return true;
+ return false;
+}
----------------
fhahn wrote:
Sufficient to do a shallow traversal of the vector loop region? And use `any_of`?
https://github.com/llvm/llvm-project/pull/129265
More information about the llvm-commits
mailing list