Skip to content
  • Jakob Stoklund Olesen's avatar
    Always normalize spill weights, also for intervals created by spilling. · c953acbd
    Jakob Stoklund Olesen authored
    Moderate the weight given to very small intervals.
    
    The spill weight given to new intervals created when spilling was not
    normalized in the same way as the original spill weights calculated by
    CalcSpillWeights. That meant that restored registers would tend to hang around
    because they had a much higher spill weight that unspilled registers.
    
    This improves the runtime of a few tests by up to 10%, and there are no
    significant regressions.
    
    llvm-svn: 96613
    c953acbd
Loading