This is an archive of the discontinued LLVM Phabricator instance.

[VP][ISel] use LEGALPOS for legalization action
ClosedPublic

Authored by simoll on Jan 4 2022, 4:33 AM.

Details

Summary

Use the VPIntrinsics.def's LEGALPOS that is specified with every VP SDNode to determine which return or operand value type shall be used to infer the legalization action.

Diff Detail

Event Timeline

simoll created this revision.Jan 4 2022, 4:33 AM
simoll requested review of this revision.Jan 4 2022, 4:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2022, 4:33 AM
frasercrmck accepted this revision.Jan 4 2022, 5:07 AM

LGTM. Though I could have sworn there were more cases where we are currently doing this with explicit VP_XXX checks.

This revision is now accepted and ready to land.Jan 4 2022, 5:07 AM
This revision was landed with ongoing or failed builds.Jan 4 2022, 5:51 AM
This revision was automatically updated to reflect the committed changes.