[llvm] [RISCV] Vectorize phi for loop carried @llvm.vector.reduce.fadd (PR #78244)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 09:20:16 PST 2024
================
@@ -157,6 +155,9 @@ bool RISCVCodeGenPrepare::visitIntrinsicInst(IntrinsicInst &I) {
Builder.SetInsertPoint(&I);
I.setOperand(0, Builder.CreateExtractElement(VecPHI, (uint64_t)0));
+ if (PHI->hasNUses(0))
----------------
topperc wrote:
use_empty()?
https://github.com/llvm/llvm-project/pull/78244
More information about the llvm-commits
mailing list