This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Extend IsCMPZCSINC to handle CMOV
ClosedPublic

Authored by dmgreen on Dec 6 2021, 1:54 PM.

Details

Summary

A CMOV 1, 0, CC, %cpsr, Cmp is the same as a CSINC 0, 0, CC, Cmp, and can be treated the same in IsCMPZCSINC added in D114013. This allows us to remove the unnecessary CMOV in the same way that we could remove a CSINC.

Diff Detail

Event Timeline

dmgreen created this revision.Dec 6 2021, 1:54 PM
dmgreen requested review of this revision.Dec 6 2021, 1:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2021, 1:54 PM
samtebbs accepted this revision.Dec 9 2021, 9:07 AM

LGTM

This revision is now accepted and ready to land.Dec 9 2021, 9:07 AM
This revision was landed with ongoing or failed builds.Dec 27 2021, 6:15 AM
This revision was automatically updated to reflect the committed changes.