This is an archive of the discontinued LLVM Phabricator instance.

[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