This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG][RISCV] Emit a canonical sign bit test from ExpandIntRes_ABS.
ClosedPublic

Authored by craig.topper on Mar 1 2022, 12:08 PM.

Details

Summary

Instead of emitting 0 > Hi, emit Hi < 0. If Hi needs to be expanded again
this will allow the special case for sign bit tests in ExpandIntOp_SETCC
to trigger.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 1 2022, 12:08 PM
craig.topper requested review of this revision.Mar 1 2022, 12:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 12:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 1:22 PM

clang-format

RKSimon accepted this revision.Mar 2 2022, 8:50 AM

LGTM

This revision is now accepted and ready to land.Mar 2 2022, 8:50 AM
This revision was landed with ongoing or failed builds.Mar 2 2022, 9:54 AM
This revision was automatically updated to reflect the committed changes.