Skip to content
  • Jakob Stoklund Olesen's avatar
    Move more fragments of spill weight calculation into CalcSpillWeights.h · 1dd377d8
    Jakob Stoklund Olesen authored
    Simplify the spill weight calculation a bit by bypassing
    getApproximateInstructionCount() and using LiveInterval::getSize() directly.
    This changes the computed spill weights, but only by a constant factor in each
    function. It should not affect how spill weights compare against each other, and
    so it shouldn't affect code generation.
    
    llvm-svn: 125530
    1dd377d8
Loading