This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Allow distributing postinc with PHI uses
ClosedPublic

Authored by dmgreen on Jun 13 2022, 11:12 AM.

Details

Summary

Although this doesn't usually come up, we can have uses of the BaseAccess of a distributed postinc being a PHI. This doesn't need the usual dominance check as we will dominate along the phi edge, allowing us to still create a postinc load/store.

Diff Detail

Event Timeline

dmgreen created this revision.Jun 13 2022, 11:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 11:12 AM
dmgreen requested review of this revision.Jun 13 2022, 11:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 11:12 AM
SjoerdMeijer accepted this revision.Jun 14 2022, 1:14 AM

Yay, one more postinc, LGTM.

llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
2899–2900

Nit: comment slightly out of date now.

This revision is now accepted and ready to land.Jun 14 2022, 1:14 AM
This revision was landed with ongoing or failed builds.Jun 20 2022, 2:08 AM
This revision was automatically updated to reflect the committed changes.