[llvm-commits] [llvm] r117174 - in /llvm/trunk: include/llvm/CodeGen/LinkAllCodegenComponents.h include/llvm/CodeGen/Passes.h lib/CodeGen/CMakeLists.txt lib/CodeGen/LiveIntervalUnion.cpp lib/CodeGen/LiveIntervalUnion.h lib/CodeGen/RegAllocBase.h lib/CodeGen/RegAllocBasic.cpp lib/CodeGen/SplitKit.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Oct 26 13:19:29 PDT 2010


On Oct 26, 2010, at 1:03 PM, Evan Cheng wrote:

> 3. It would be nice if the new allocators do not have to update LiveStacks but instead compute it after the allocation is done. Do you think it's possible?

I just moved the responsibility for updating LiveStacks into the spillers.

The implementation in the standard spiller is a bit too conservative since nobody knows when it spills and when it splits.

The implementation in InlineSpiller only updates LiveStacks after splitting and rematerialization is complete, so it should provide near minimal LiveStacks.

If the LiveStacks are minimal, it is fine to calculate them on the fly, right? Or du you have a reason for wanting to compute them after allocation?

/jakob





More information about the llvm-commits mailing list