[PATCH] D136010: [RISCV] Don't emit zero check in CTTZTableLookup for CTTZ_ZERO_UNDEF.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 20:56:47 PDT 2022
craig.topper created this revision.
craig.topper added reviewers: efriedma, RKSimon, gsocshubham.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, frasercrmck, evandro, 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, asb, fedor.sergeev, hiraditya, arichardson, jyknight.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
The code incorrectly checked for CTLZ_ZERO_UNDEF instead of
CTTZ_ZERO_UNDEF.
While I was there I flipped the condition into an early out.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136010
Files:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
llvm/test/CodeGen/RISCV/rv32zbb.ll
llvm/test/CodeGen/RISCV/rv64zbb.ll
llvm/test/CodeGen/SPARC/cttz.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136010.467992.patch
Type: text/x-patch
Size: 31406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221015/14c70fef/attachment.bin>
More information about the llvm-commits
mailing list