OpenOrbis / musl

A PS4 port of musl for the OpenOrbis PS4 Toolchain.
Other
34 stars 9 forks source link

Be more efficient with registers clobbered by syscalls #1

Closed josephcsible closed 4 years ago

josephcsible commented 4 years ago

Instead of always pushing and popping the clobbered registers, mark them as clobbers when they're not inputs, and as input/outputs when they are inputs. This will let GCC avoid saving the values in the cases when it knows they won't be needed afterward.

Cryptogenic commented 4 years ago

Sorry for the late merge - looks all good, thanks! Much more elegant.