[LLVMdev] Are global variables candiates for register allocation?

Hayden Livingston
Wed, 01 Jul 2015 00:43:25 -0000

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.