[llvm] Reapply "[VPlan] Extract reverse mask from reverse accesses" (PR #189930)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 03:06:42 PDT 2026
================
@@ -1046,8 +1045,13 @@ InstructionCost VPRecipeWithIRFlags::getCostForRecipeWithOpcode(
return dyn_cast<VPRecipeBase>(*R->user_begin());
};
if (VPRecipeBase *Recipe = GetOnlyUser(this)) {
- if (match(Recipe, m_Reverse(m_VPValue())))
- Recipe = GetOnlyUser(cast<VPInstruction>(Recipe));
+ if (match(Recipe,
+ m_CombineOr(m_Reverse(m_VPValue()),
+ m_Intrinsic<Intrinsic::experimental_vp_reverse>(
+ m_VPValue(), m_VPValue(), m_VPValue())))) {
----------------
Mel-Chen wrote:
@fhahn WDYT?
https://github.com/llvm/llvm-project/pull/189930
More information about the llvm-commits
mailing list