[LLVMdev] [LLVMDev] The Basic Register allocator

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Oct 28 16:55:09 PDT 2010


On Oct 28, 2010, at 4:46 PM, Jeff Kunkel wrote:

> Let me rephrase my question. The live intervals have a weight
> associated with them. What does this weight exactly represent?

Approximately: spill cost / live range area, see CalcSpillWeights.cpp

A higher spill weight is more desirable to keep in a register, so those registers are allocated first.







More information about the llvm-dev mailing list