This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Mark some G_BITREVERSE types as legal + select them
ClosedPublic

Authored by paquette on Jun 9 2021, 5:39 PM.

Details

Summary

We fall back on G_CTTZ_ZERO_UNDEF a lot when building clang for arm64 with gisel.

Handling this will require that we can handle G_BITREVERSE.

This patch marks G_BITREVERSE instructions with natively supported types as legal. We get selection on these types for free via the importer.

Diff Detail

Event Timeline

paquette created this revision.Jun 9 2021, 5:39 PM
paquette requested review of this revision.Jun 9 2021, 5:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2021, 5:39 PM
jroelofs accepted this revision.Jun 9 2021, 6:09 PM

LGTM

This revision is now accepted and ready to land.Jun 9 2021, 6:09 PM
dmgreen added a subscriber: Rin.Jun 9 2021, 11:32 PM
This revision was landed with ongoing or failed builds.Jun 10 2021, 10:34 AM
This revision was automatically updated to reflect the committed changes.