[PATCH] D43542: [CodeGen][FastRegAlloc] Disable registers spilling for a naked function (PR28641)

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 18:37:41 PST 2018


MatzeB added a reviewer: qcolombet.
MatzeB added a comment.

> 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?


https://reviews.llvm.org/D43542





More information about the llvm-commits mailing list