[llvm] [LV][EVL] Support in-loop reduction using tail folding with EVL. (PR #90184)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 02:57:11 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);
----------------
fhahn wrote:

The latest version moves the logic to create vector-predication intrinsics to the vector-intrinsic builder, which addressed my main concern (re-use of logic elsewhere), so that looks good to me for now

https://github.com/llvm/llvm-project/pull/90184


More information about the llvm-commits mailing list