This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Legalize + select v2p0 -> v264 G_PTRTOINT
ClosedPublic

Authored by paquette on Aug 23 2021, 10:05 PM.

Details

Summary
  1. Just mark this case as legal because it can just be a copy.
  1. Ensure the copy in the existing code actually gets selected. Without doing this, we'll crash because the destination won't have a register class. We could probably just set the register class here directly, but selectCopy has some nice things like verifying that the selected copy is correct.

This fell back 35 times in a build of clang with GISel for AArch64.

Diff Detail

Event Timeline

paquette created this revision.Aug 23 2021, 10:05 PM
paquette requested review of this revision.Aug 23 2021, 10:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2021, 10:05 PM
jroelofs accepted this revision.Aug 24 2021, 9:32 AM
This revision is now accepted and ready to land.Aug 24 2021, 9:32 AM
This revision was landed with ongoing or failed builds.Aug 24 2021, 11:02 AM
This revision was automatically updated to reflect the committed changes.