[all-commits] [llvm/llvm-project] 5ea5e3: [InstCombine] add tests for low-mask of ashr; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Apr 14 16:45:48 PDT 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ea5e3c01b7be01c9a9689233b4ab3e8aa4dc7dc
      https://github.com/llvm/llvm-project/commit/5ea5e3c01b7be01c9a9689233b4ab3e8aa4dc7dc
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/and.ll

  Log Message:
  -----------
  [InstCombine] add tests for low-mask of ashr; NFC

(cherry picked from commit 141892d481fcf446c9bf1ae5fb600d797295debc)


  Commit: 43ee392dd462f218af0fe18207e6dba347927de2
      https://github.com/llvm/llvm-project/commit/43ee392dd462f218af0fe18207e6dba347927de2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/and.ll

  Log Message:
  -----------
  [InstCombine] try to fold low-mask of ashr to lshr

With one-use, we handle this via demanded-bits.
But We need to handle extra uses to improve issue #54750.

https://alive2.llvm.org/ce/z/aDYkPv
(cherry picked from commit 7783db55afefd3b0d83f4d1b727b6aaa2c2286d6)


Compare: https://github.com/llvm/llvm-project/compare/fe8a27acd716...43ee392dd462


More information about the All-commits mailing list