This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Custom lower i1 vector truncates
ClosedPublic

Authored by dmgreen on Jan 7 2021, 4:33 AM.

Details

Summary

The ISel patterns we have for truncating to i1's under MVE do seem to be correct. Instead custom lower to icmp(ne, and(x, 1), 0).

Diff Detail

Event Timeline

dmgreen created this revision.Jan 7 2021, 4:33 AM
dmgreen requested review of this revision.Jan 7 2021, 4:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2021, 4:33 AM
samtebbs accepted this revision.Jan 8 2021, 6:30 AM

LGTM. Have you noticed any performance changes with this?

This revision is now accepted and ready to land.Jan 8 2021, 6:30 AM

Thanks. I made a typo in the summary, it should have said "do not seem to be correct", not "do seem...".

Have you noticed any performance changes with this?

No. I think it should be pretty rare - which is why we did not see this problem before.

This revision was automatically updated to reflect the committed changes.