[all-commits] [llvm/llvm-project] fcec87: [LoopVectorize][NFC] Simplify ScaledReductionExitI...

David Sherwood via All-commits all-commits at lists.llvm.org
Mon Jan 20 06:41:50 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fcec8756e25333b6f49472f00e043f2389736c0b
      https://github.com/llvm/llvm-project/commit/fcec8756e25333b6f49472f00e043f2389736c0b
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2025-01-20 (Mon, 20 Jan 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h

  Log Message:
  -----------
  [LoopVectorize][NFC] Simplify ScaledReductionExitInstrs map (#123368)

For the following variable

DenseMap<const Instruction *, std::pair<PartialReductionChain,
unsigned>>
  ScaledReductionExitInstrs;

we never actually need the PartialReductionChain when using the map.
I've cleaned this up so that this now becomes

  DenseMap<const Instruction *, unsigned> ScaledReductionMap;



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list