This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Refactor complex immediate pattern used by CPY/DUP.
ClosedPublic

Authored by paulwalker-arm on Feb 23 2022, 3:58 PM.

Details

Summary

SelectSVE8BitLslImm didn't account for constant values that have a
larger bit width than the result vector's element type. This only
seems to affect a single corner case when lowering fixed length
vectors but the code itself is also not consistent with how other
related complex patterns are implemented so I've taken the
opportunity to refactor the code.

Diff Detail

Event Timeline

paulwalker-arm created this revision.Feb 23 2022, 3:58 PM
paulwalker-arm requested review of this revision.Feb 23 2022, 3:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2022, 3:58 PM
bsmith accepted this revision.Feb 24 2022, 7:19 AM

LGTM!

This revision is now accepted and ready to land.Feb 24 2022, 7:19 AM
This revision was landed with ongoing or failed builds.Feb 25 2022, 8:16 AM
This revision was automatically updated to reflect the committed changes.