[PATCH] D151449: [RISCV] Add DAG combine for CTTZ in the case of input 0
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 07:26:12 PDT 2023
djtodoro created this revision.
djtodoro added a reviewer: asb.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
djtodoro requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
Optimize the CTTZ instruction if the input is ```0``` by performing the```DAG combine```.
https://reviews.llvm.org/D151449
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/cttz_zero_return_test.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151449.525594.patch
Type: text/x-patch
Size: 5669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230525/18747853/attachment.bin>
More information about the llvm-commits
mailing list