This is an archive of the discontinued LLVM Phabricator instance.

[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
CTTZ_ZERO_UNDEF.

While I was there I flipped the condition into an early out.

Diff Detail

Event Timeline

craig.topper created this revision.Oct 14 2022, 8:56 PM
craig.topper requested review of this revision.Oct 14 2022, 8:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 8:56 PM
craig.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
This revision was automatically updated to reflect the committed changes.