[llvm] [VPlan] Add narrowToSingleScalarRecipe transform. (PR #139150)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 16 13:06:35 PDT 2025
================
@@ -1086,6 +1086,40 @@ void VPlanTransforms::simplifyRecipes(VPlan &Plan, Type &CanonicalIVTy) {
}
}
+static void convertToUniformRecipes(VPlan &Plan) {
+ if (Plan.hasScalarVFOnly())
+ return;
+
+ for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
+ vp_depth_first_shallow(Plan.getVectorLoopRegion()->getEntry()))) {
----------------
fhahn wrote:
Yes, we cannot convert to uniform recipes in replicate regions at they moment, they need hoisting out first.
https://github.com/llvm/llvm-project/pull/139150
More information about the llvm-commits
mailing list