This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Support BSET/BCLR/BINV in isAllUsesReadW.
ClosedPublic

Authored by craig.topper on Nov 4 2022, 11:28 AM.

Details

Summary

These instructions set, clear, or invert a single bit. If their
users don't use the upper 32 bits, they don't use the upper 32 bits
of their input.

Additionally the second operand BSET/BCLR/BINV is a shift amount
which only uses 6 bits of the source.

Diff Detail

Event Timeline

craig.topper created this revision.Nov 4 2022, 11:28 AM
craig.topper requested review of this revision.Nov 4 2022, 11:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 11:28 AM
asb accepted this revision.Nov 8 2022, 3:01 AM

LGTM.

This revision is now accepted and ready to land.Nov 8 2022, 3:01 AM
This revision was landed with ongoing or failed builds.Nov 9 2022, 11:33 AM
This revision was automatically updated to reflect the committed changes.