[llvm] [VPlan] Extract reverse mask from reverse accesses (PR #155579)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 02:48:27 PDT 2025
================
@@ -6939,6 +6939,29 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
cast<VPRecipeWithIRFlags>(R).getPredicate() !=
cast<CmpInst>(UI)->getPredicate())
return true;
+
+ if (auto *MemR = dyn_cast<VPWidenMemoryRecipe>(&R)) {
+ bool IsReverse = CostCtx.CM.getWideningDecision(UI, VF) ==
+ LoopVectorizationCostModel::CM_Widen_Reverse;
----------------
Mel-Chen wrote:
https://github.com/llvm/llvm-project/pull/146525#discussion_r2276956065
https://github.com/llvm/llvm-project/pull/155579
More information about the llvm-commits
mailing list