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.
Paths
| Differential D136010
[TargetLowering][RISCV][Sparc] Don't emit zero check in CTTZTableLookup for CTTZ_ZERO_UNDEF. ClosedPublic Authored by craig.topper on Oct 14 2022, 8:56 PM.
Details Summary The code incorrectly checked for CTLZ_ZERO_UNDEF instead of While I was there I flipped the condition into an early out.
Diff Detail
Event Timelinecraig.topper retitled this revision from [RISCV] Don't emit zero check in CTTZTableLookup for CTTZ_ZERO_UNDEF. to [TargetLowering][RISCV][Sparc] Don't emit zero check in CTTZTableLookup for CTTZ_ZERO_UNDEF..Oct 14 2022, 8:59 PM This revision is now accepted and ready to land.Oct 16 2022, 12:34 PM This revision was landed with ongoing or failed builds.Oct 17 2022, 10:16 AM Closed by commit rG30305d794840: [TargetLowering][RISCV][Sparc] Don't emit zero check in CTTZTableLookup for… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 468248 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
|