[llvm] [RISCV] Vectorize phi for loop carried @llvm.vp.reduce.* (PR #131974)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 23:58:28 PDT 2025
================
@@ -137,7 +137,8 @@ bool RISCVCodeGenPrepare::visitIntrinsicInst(IntrinsicInst &I) {
if (expandVPStrideLoad(I))
return true;
- if (I.getIntrinsicID() != Intrinsic::vector_reduce_fadd)
+ if (I.getIntrinsicID() != Intrinsic::vector_reduce_fadd &&
+ !isa<VPReductionIntrinsic>(&I))
----------------
lukel97 wrote:
Should this be limited to just fadd reductions?
```suggestion
!I.getIntrinsicID() != Intrinsic::vp_reduce_fadd)
```
https://github.com/llvm/llvm-project/pull/131974
More information about the llvm-commits
mailing list