This is an archive of the discontinued LLVM Phabricator instance.

[ARM][CGP] Fix scalar condition selects for MVE
ClosedPublic

Authored by dmgreen on Aug 24 2020, 1:29 AM.

Details

Summary

The arm backend does not handle select/select_cc on vectors with scalar conditions, preferring to expand them in codegenprepare instead. This usually works except when optimizing for size, where the optsize check would end up overruling the backend isSelectSupported check.

We could handle the selects in ISel too, but this seems like smaller code than trying to splat the condition to all lanes.

Diff Detail

Event Timeline

dmgreen created this revision.Aug 24 2020, 1:29 AM
dmgreen requested review of this revision.Aug 24 2020, 1:29 AM
samparker accepted this revision.Aug 24 2020, 4:17 AM
This revision is now accepted and ready to land.Aug 24 2020, 4:17 AM
This revision was automatically updated to reflect the committed changes.