[llvm-branch-commits] [llvm] [LoopVectorizer] Bundle partial reductions inside VPMulAccumulateReductionRecipe (PR #136173)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 24 02:21:42 PDT 2025


================
@@ -219,6 +219,8 @@ class TargetTransformInfo {
   /// Get the kind of extension that an instruction represents.
   static PartialReductionExtendKind
   getPartialReductionExtendKind(Instruction *I);
+  static PartialReductionExtendKind
+  getPartialReductionExtendKind(Instruction::CastOps ExtOpcode);
----------------
sdesmalen-arm wrote:

What about either replacing `getPartialReductionExtendKind(Instruction *I);` with this one, rather than adding a new interface, Or otherwise changing the implementation of `getPartialReductionExtendKind(Instruction *I)` to use `getPartialReductionExtendKind(Instruction::CastOps)` ?

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


More information about the llvm-branch-commits mailing list