[llvm] [LoopVectorizer] Add support for partial reductions (PR #92418)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 10:13:38 PDT 2024


================
@@ -7978,6 +7978,12 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
     return;
   }
   case Intrinsic::experimental_vector_partial_reduce_add: {
+
+    if(!TLI.shouldExpandPartialReductionIntrinsic(&I))) {
+      visitTargetIntrinsic(I, Intrinsic);
----------------
fhahn wrote:

I see, but does this change need to be part of the LV changes? And would it be possible test this change separately?

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


More information about the llvm-commits mailing list