[PATCH] D43542: [CodeGen][FastRegAlloc] Disable registers spilling for a naked function (PR28641)
Konstantin Belochapka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 12:21:28 PST 2018
kbelochapka added a comment.
In https://reviews.llvm.org/D43542#1013969, @MatzeB wrote:
> > Since a "naked" function can only have nothing but "asm" statements inside, and those "asm" statements can not have input or output parameters, it is safe to just disable any registers spilling for a "naked" function.
>
> Do naked functions have vregs at all then? Could we just skip the whole register allocation process in runOnMachineFunction() instead?
Yes, they have VREGS, a "naked" function can have a list of input parameters.
https://reviews.llvm.org/D43542
More information about the llvm-commits
mailing list