[llvm] [LV][EVL] Support in-loop reduction using tail folding with EVL. (PR #90184)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 06:32:57 PDT 2024
================
@@ -422,6 +436,11 @@ CallInst *IRBuilderBase::CreateFAddReduce(Value *Acc, Value *Src) {
return CreateCall(Decl, Ops);
}
+CallInst *IRBuilderBase::CreateFAddReduce(Value *Acc, Value *Src, Value *EVL,
+ Value *Mask) {
+ return getReductionIntrinsic(Intrinsic::vp_reduce_fadd, Acc, Src, Mask, EVL);
----------------
Mel-Chen wrote:
172745025d81388ef8104006ffd7e6faa3d1b04a
@fhahn @nikolaypanchenko I have attempted to move the utils function of IRBuilderBase to VectorBuilder. Please review and let me know if this design is appropriate. Thank you.
https://github.com/llvm/llvm-project/pull/90184
More information about the llvm-commits
mailing list