This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Widen G_PHI before clamping it during legalization
ClosedPublic

Authored by paquette on Aug 3 2021, 5:48 PM.

Details

Summary

This allows us to handle weird types like s88; we first widen to s128, then clamp back down to s64.

https://godbolt.org/z/9xqbP46Mz

Also this makes it possible for GISel to legalize the case in pr48188.ll. It now does the same thing as SDAG, although regalloc chooses different registers.

Diff Detail

Event Timeline

paquette created this revision.Aug 3 2021, 5:48 PM
paquette requested review of this revision.Aug 3 2021, 5:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 5:48 PM
aemerson accepted this revision.Aug 3 2021, 10:36 PM
This revision is now accepted and ready to land.Aug 3 2021, 10:36 PM
This revision was landed with ongoing or failed builds.Aug 4 2021, 10:26 AM
This revision was automatically updated to reflect the committed changes.