This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Constrain CMPZ shift combine to a single use
ClosedPublic

Authored by dmgreen on May 1 2021, 4:17 AM.

Details

Summary

We currently prefer t2CMPrs over t2CMPri when the node contains a shift. This can introduce more nodes if the shift has multiple uses though, as value from the shift will be needed anyway, and in the case of a t2CMPri compared with zero will more readily be removed entirely.

Diff Detail

Event Timeline

dmgreen created this revision.May 1 2021, 4:17 AM
dmgreen requested review of this revision.May 1 2021, 4:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2021, 4:17 AM
This revision is now accepted and ready to land.May 13 2021, 5:33 AM
This revision was landed with ongoing or failed builds.May 13 2021, 10:31 AM
This revision was automatically updated to reflect the committed changes.