Skip to content
  • Jakob Stoklund Olesen's avatar
    Add the SpillPlacement analysis pass. · 8e236eac
    Jakob Stoklund Olesen authored
    This pass precomputes CFG block frequency information that can be used by the
    register allocator to find optimal spill code placement.
    
    Given an interference pattern, placeSpills() will compute which basic blocks
    should have the current variable enter or exit in a register, and which blocks
    prefer the stack.
    
    The algorithm is ready to consume block frequencies from profiling data, but for
    now it gets by with the static estimates used for spill weights.
    
    This is a work in progress and still not hooked up to RegAllocGreedy.
    
    llvm-svn: 122938
    8e236eac
Loading