[llvm] [LoopVectorize][NFC] Simplify ScaledReductionExitInstrs map (PR #123368)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 19 14:20:47 PST 2025


================
@@ -88,8 +88,7 @@ class VPRecipeBuilder {
 
   /// The set of reduction exit instructions that will be scaled to
   /// a smaller VF via partial reductions, paired with the scaling factor.
-  DenseMap<const Instruction *, std::pair<PartialReductionChain, unsigned>>
-      ScaledReductionExitInstrs;
+  DenseMap<const Instruction *, unsigned> ScaledReductionExitInstrs;
----------------
fhahn wrote:

Should the name and comment also be updated now, this now just maps scaled reduction exit instructions to their scaling factors?

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


More information about the llvm-commits mailing list