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

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 03:14:00 PDT 2023


SixWeining created this revision.
SixWeining added reviewers: xen0n, wangleiat, xry111.
Herald added a subscriber: hiraditya.
Herald added a project: All.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Inspired by D158384 <https://reviews.llvm.org/D158384>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158832

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158832.553428.patch
Type: text/x-patch
Size: 92619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230825/cf3c0dd6/attachment.bin>


More information about the llvm-commits mailing list