I was studying the basic register allocator, and I am wondering why "LessSpillWeightPriority" priority was used over the greater weight. - Thanks Jeff Kunkel
Jakob Stoklund Olesen
2010-Oct-28 23:22 UTC
[LLVMdev] [LLVMDev] The Basic Register allocator
On Oct 28, 2010, at 4:05 PM, Jeff Kunkel wrote:> I was studying the basic register allocator, and I am wondering why > "LessSpillWeightPriority" priority was used over the greater weight.Because the front of std::priority_queue is the largest element given the ordering.
I understand the mechanics. I don't know why a lesser weight is better than a greater weight. On Thu, Oct 28, 2010 at 7:22 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:> > On Oct 28, 2010, at 4:05 PM, Jeff Kunkel wrote: > >> I was studying the basic register allocator, and I am wondering why >> "LessSpillWeightPriority" priority was used over the greater weight. > > Because the front of std::priority_queue is the largest element given the ordering. > > >
Apparently Analagous Threads
- [LLVMdev] [LLVMDev] The Basic Register allocator
- [LLVMdev] [LLVMDev] The Basic Register allocator
- [LLVMdev] [LLVMDev] The Basic Register allocator
- [LLVMdev] [LLVMDev] Live Intervals and Finding the next usage
- [LLVMdev] [LLVMDev] [Modeling] About the structure of my allocator