[all-commits] [llvm/llvm-project] b0cc47: [InstCombine] Remove scalable vector extracts to a...

Kerry McLaughlin via All-commits all-commits at lists.llvm.org
Mon Oct 23 03:22:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0cc47c959cb4c4ab54516ee73ede52d208a739f
      https://github.com/llvm/llvm-project/commit/b0cc47c959cb4c4ab54516ee73ede52d208a739f
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2023-10-23 (Mon, 23 Oct 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/canonicalize-vector-extract.ll

  Log Message:
  -----------
  [InstCombine] Remove scalable vector extracts to and from the same type (#69702)

visitCallInst already looks for fixed width vector extracts where number of
elements in the source and destination types are equal. This patch modifies
the function to also identify scalable extracts which can be removed.




More information about the All-commits mailing list