This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] Add patterns for VSELECT of immediate with a variable.
ClosedPublic

Authored by efriedma on May 12 2020, 1:18 PM.

Details

Summary

This covers forms involving "CPY (immediate, merging)".

Diff Detail

Event Timeline

efriedma created this revision.May 12 2020, 1:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2020, 1:18 PM
fpetrogalli accepted this revision.May 13 2020, 6:46 AM

LGTM, with a nit on a comment that my slow brain still struggle to understand! :)

Thanks,

Francesco

llvm/test/CodeGen/AArch64/sve-vselect-imm.ll
342

Nit: there is no "SEL" instruction that operates on immediate values in SVE.

Please consider expanding this comment explaining why you can use #-128 instead of #128, and why the condition "if the odd bits of the predicate are zero" is needed for this to hold.

This revision is now accepted and ready to land.May 13 2020, 6:46 AM
This revision was automatically updated to reflect the committed changes.