This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Make G_UBFX/G_SBFX legalization check for constants
ClosedPublic

Authored by paquette on Mar 24 2021, 1:45 PM.

Details

Summary

The original rule just checked the type, but this is actually only legal if it has a constant.

Since the legalizer isn't supposed to be conditional, we have to check this.

(I'll probably have to make the bitfield extract combines I've been putting up AArch64-specific for now and come up with a way to check for custom legalization rules in the combiner.)

Diff Detail

Event Timeline

paquette created this revision.Mar 24 2021, 1:45 PM
paquette requested review of this revision.Mar 24 2021, 1:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2021, 1:45 PM
arsenm accepted this revision.Mar 24 2021, 1:47 PM
This revision is now accepted and ready to land.Mar 24 2021, 1:47 PM
This revision was landed with ongoing or failed builds.Mar 24 2021, 1:59 PM
This revision was automatically updated to reflect the committed changes.