[LLVMdev] Greedy Register Allocation in LLVM 3.0
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Sep 26 11:27:36 PDT 2011
On Sep 26, 2011, at 2:12 AM, Carlo Alberto Ferraris wrote:
> Just a quick question: is greedy still a local allocator (i.e. only takes into consideration the current bb) or a global one (takes into consideration the whole function)?
RegAllocGreedy, RegAllocBasic, RegAllocLinearScan and RegAllocPBQP are global.
RegAllocFast is local. It is only used for -O0. In the future, it may get primitive support for the kind of global live ranges that clang -O0 can produce.
More information about the llvm-dev