[PATCH] D154330: [CSKY] Optimize constant materialization with BMASKI32

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 02:37:10 PDT 2023


benshi001 created this revision.
benshi001 added a reviewer: zixuan-wu.
Herald added a subscriber: hiraditya.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.

For constant like 0b1, 0b11, 0b111, 0b1111, ..., they can be
materialized with BMASKI32 other than a MOVIH32/ORI32 pair.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154330

Files:
  llvm/lib/Target/CSKY/CSKYInstrInfo.td
  llvm/test/CodeGen/CSKY/base-i.ll
  llvm/test/CodeGen/CSKY/switch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154330.536696.patch
Type: text/x-patch
Size: 10598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230703/9d0f0011/attachment.bin>


More information about the llvm-commits mailing list