[PATCH] D132839: Pre-commit tests for PR#56391
Tetyushkin Ivan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 02:11:33 PDT 2022
ita-sc created this revision.
Herald added subscribers: luke957, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
ita-sc requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.
Optimization for using compressed beqz and bnez
If there is pattern
br_cc val1 constval eq/neq place
select_cc val1 constval eq/neq trueval falseval
and constval does not fit in compressed imm format(6 bit), but fit in
imm format(12 bit), we can replace by non compress sub and compress
c.beqz/c.bneqz:
addi val val -constval
c.beqz val place
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132839
Files:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/CodeGen/RISCV/compress-opt-branch.ll
llvm/test/CodeGen/RISCV/compress-opt-select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132839.456292.patch
Type: text/x-patch
Size: 20237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/7b5833cd/attachment.bin>
More information about the llvm-commits
mailing list