Page MenuHomePhabricator

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

Authored by paquette on Wed, Jun 9, 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.Wed, Jun 9, 5:39 PM
paquette requested review of this revision.Wed, Jun 9, 5:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptWed, Jun 9, 5:39 PM
jroelofs accepted this revision.Wed, Jun 9, 6:09 PM

LGTM

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