[llvm] [VPlan] Impl VPlan-based pattern match for ExtendedRed and MulAccRed (PR #113903)
Elvis Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 21:36:15 PDT 2025
================
@@ -272,6 +272,14 @@ Type *VPTypeAnalysis::inferScalarType(const VPValue *V) {
// TODO: Use info from interleave group.
return V->getUnderlyingValue()->getType();
})
+ .Case<VPExtendedReductionRecipe>(
+ [](const VPExtendedReductionRecipe *R) {
+ return R->getResultType();
+ })
+ .Case<VPMulAccumulateReductionRecipe>(
+ [](const VPMulAccumulateReductionRecipe *R) {
+ return R->getResultType();
+ })
----------------
ElvisWang123 wrote:
Updated, thanks!
https://github.com/llvm/llvm-project/pull/113903
More information about the llvm-commits
mailing list