This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add some VCMP folding and canonicalisation
ClosedPublic

Authored by dmgreen on Nov 28 2019, 6:41 AM.

Details

Summary

The VCMP instructions in MVE can accept a register or ZR, but only as the right hand operator. Most of the time this will already be correct because the icmp will have been canonicalised that way already. There are some cases in the lowering of float conditions that this will not apply to though. This code should fix up those cases.

Diff Detail

Event Timeline

dmgreen created this revision.Nov 28 2019, 6:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2019, 6:41 AM
SjoerdMeijer accepted this revision.Nov 29 2019, 2:02 AM

Yep, nice combine

This revision is now accepted and ready to land.Nov 29 2019, 2:02 AM
This revision was automatically updated to reflect the committed changes.