This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Widen G_SELECT before clamping it
ClosedPublic

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

Details

Summary

This allows us to handle the s88 G_SELECTS:

https://godbolt.org/z/5s18M4erY

Weird types like this can result in weird merges.

Widening to s128 first and then clamping down avoids that situation.

Diff Detail

Event Timeline

paquette created this revision.Aug 3 2021, 5:33 PM
paquette requested review of this revision.Aug 3 2021, 5:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 5:33 PM
jroelofs accepted this revision.Aug 3 2021, 5:36 PM

LGTM

This revision is now accepted and ready to land.Aug 3 2021, 5:36 PM
This revision was automatically updated to reflect the committed changes.