[all-commits] [llvm/llvm-project] 73a2ee: [LoongArch] Pre-commit test for bstrins optimization

Lu Weining via All-commits all-commits at lists.llvm.org
Sun Aug 27 18:10:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73a2eecb217dbdfe11fd77df21a59b6c41f3c67b
      https://github.com/llvm/llvm-project/commit/73a2eecb217dbdfe11fd77df21a59b6c41f3c67b
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M llvm/test/CodeGen/LoongArch/ir-instruction/and.ll

  Log Message:
  -----------
  [LoongArch] Pre-commit test for bstrins optimization

Differential Revision: https://reviews.llvm.org/D158831


  Commit: 26021577d1e3882b30c344baf8c365d7ca4ab873
      https://github.com/llvm/llvm-project/commit/26021577d1e3882b30c344baf8c365d7ca4ab873
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/test/CodeGen/LoongArch/alloca.ll
    M llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll
    M llvm/test/CodeGen/LoongArch/ir-instruction/and.ll
    M llvm/test/CodeGen/LoongArch/ir-instruction/atomic-cmpxchg.ll
    M llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw-minmax.ll
    M llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll
    M llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll
    M llvm/test/CodeGen/LoongArch/vararg.ll

  Log Message:
  -----------
  [LoongArch] Optimize (and (a & ~((2^^X - 1) << Y)) to (bstrins a, zero, X+Y-1, Y)

Inspired by D158384.

Differential Revision: https://reviews.llvm.org/D158832


Compare: https://github.com/llvm/llvm-project/compare/a8daefed341f...26021577d1e3


More information about the All-commits mailing list