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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 17 11:24:29 PST 2024


================
@@ -2067,6 +2085,12 @@ class TargetTransformInfo::Concept {
   /// \return if target want to issue a prefetch in address space \p AS.
   virtual bool shouldPrefetchAddressSpace(unsigned AS) const = 0;
 
+  virtual InstructionCost
+  getPartialReductionCost(unsigned Opcode, Type *InputType, Type *AccumType,
----------------
fhahn wrote:

Please document, this should include the definition of what partial reduction means in this context (possibly tying to the definition of the intrinsic?)

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


More information about the llvm-commits mailing list