[LLVMdev] Are global variables candiates for register allocation?

Hayden Livingston halivingston at gmail.com
Tue Jun 30 17:43:25 PDT 2015


I was wondering if global variables can be candidates for register
allocation. My use case is a global variable that is used in every
function in my program.

I'm wondering if it's better to pass it in, or let it stay as a global.

Passing it in will require a bit of work.



More information about the llvm-dev mailing list