[all-commits] [llvm/llvm-project] 6705f3: [SLP][Modularisation][NFC] Extract commutativity a...

Madhur Amilkanthwar via All-commits all-commits at lists.llvm.org
Wed Jul 15 21:54:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6705f3d3d2e6e9a151505375ab567ec82c54a637
      https://github.com/llvm/llvm-project/commit/6705f3d3d2e6e9a151505375ab567ec82c54a637
  Author: Madhur Amilkanthwar <madhura at nvidia.com>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPUtils.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPUtils.h

  Log Message:
  -----------
  [SLP][Modularisation][NFC] Extract commutativity and ordering helpers into SLPUtils 2/3 (#209080)

Please refer to RFC:
https://discourse.llvm.org/t/modularizing-slpvectorizer-cpp/90922

Move into SLPVectorizer/SLPUtils.{h,cpp} (namespace
llvm::slpvectorizer):
  - UsesLimit (constant)
  - isCommutative(Instruction *, Value *, bool)
  - isCommutative(Instruction *) (overload)
  - isCommutableOperand
  - getNumberOfPotentiallyCommutativeOps
  - getElementIndex
  - inversePermutation
  - reorderScalars
  - shortBundleName (debug-only, #if !defined(NDEBUG))
  - areAllOperandsNonInsts
  - isUsedOutsideBlock
  - doesNotNeedToBeScheduled
  - doesNotNeedToSchedule

(Please note that the move is intended to be verbatim. I welcome
comments about latents issues/comment changes and any other simple
things but will take them in a separate patch.)

Assisted by Cursor.



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