[all-commits] [llvm/llvm-project] 6aa735: [NFC][DAG] `combineShuffleToVectorExtend()`: check...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sun Dec 25 14:24:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6aa735938782bbd35ba68fa5f3f04b717da674c7
      https://github.com/llvm/llvm-project/commit/6aa735938782bbd35ba68fa5f3f04b717da674c7
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-26 (Mon, 26 Dec 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [NFC][DAG] `combineShuffleToVectorExtend()`: check that the type is legal first

There is no point in doing any of the potentially-costly matching
if we will inevitably give up anyway.


  Commit: 2999c45050f93c1d7753bf9c0f353f46cc90bbbb
      https://github.com/llvm/llvm-project/commit/2999c45050f93c1d7753bf9c0f353f46cc90bbbb
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-26 (Mon, 26 Dec 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [NFC][DAGCombiner] Extract `canCombineShuffleToAnyVectorExtendInReg()` helper

Adding zero-ext support isn't as straight-forward, and it's easier
to to so in a new function, but this helper is useful there.
This does not change any existing behaviour.


  Commit: f487dfd830255f0b971c2c0596676f2717d6b60b
      https://github.com/llvm/llvm-project/commit/f487dfd830255f0b971c2c0596676f2717d6b60b
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-26 (Mon, 26 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/VectorUtils.h
    M llvm/lib/Analysis/VectorUtils.cpp
    M llvm/unittests/Analysis/VectorUtilsTest.cpp

  Log Message:
  -----------
  [NFC][Analysis] Implement `getShuffleMaskWithWidestElts()` wrapper (+tests)

It will be needed in an upcoming patch to implement some shuffle combining.


Compare: https://github.com/llvm/llvm-project/compare/0b0224bc88af...f487dfd83025


More information about the All-commits mailing list