[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
Mon Jul 8 10:24:57 PDT 2024
================
@@ -57,7 +57,59 @@ Value *VectorBuilder::createVectorInstruction(unsigned Opcode, Type *ReturnTy,
auto VPID = VPIntrinsic::getForOpcode(Opcode);
if (VPID == Intrinsic::not_intrinsic)
return returnWithError<Value *>("No VPIntrinsic for this opcode");
+ return createVectorInstructionImpl(VPID, ReturnTy, InstOpArray, Name);
+}
+
+Value *VectorBuilder::createSimpleTargetReduction(RecurKind Kind, Type *ValTy,
+ ArrayRef<Value *> InstOpArray,
+ const Twine &Name) {
+ auto GetForRecurKind = [](RecurKind Kind) {
----------------
Mel-Chen wrote:
2a9352bad457eb43f9fdbe22a347a57bc9940e87
Removed the lambda.
https://github.com/llvm/llvm-project/pull/90184
More information about the llvm-commits
mailing list