Page MenuHomePhabricator

[IPRA][ARM] Make use of the "returned" parameter attribute
ClosedPublic

Authored by ostannard on Jul 19 2019, 3:48 AM.

Details

Summary

ARM has code to recognise uses of the "returned" function parameter
attribute which guarantee that the value passed to the function in r0
will be returned in r0 unmodified. IPRA replaces the regmask on call
instructions, so needs to be told about this to avoid reverting the
optimisation.

Diff Detail

Repository
rL LLVM

Event Timeline

ostannard created this revision.Jul 19 2019, 3:48 AM
arsenm accepted this revision.Jul 19 2019, 10:47 AM

LGTM

This revision is now accepted and ready to land.Jul 19 2019, 10:47 AM
This revision was automatically updated to reflect the committed changes.