Skip to content
  1. Mar 27, 2009
  2. Mar 26, 2009
  3. Mar 25, 2009
  4. Mar 24, 2009
  5. Mar 23, 2009
    • Evan Cheng's avatar
      Fix a bug in spill weight computation. If the alias is a super-register, and... · 7fe1b0f5
      Evan Cheng authored
      Fix a bug in spill weight computation. If the alias is a super-register, and the super-register is in the register class we are trying to allocate. Then add the weight to all sub-registers of the super-register even if they are not aliases.                                                                                                  
      e.g. allocating for GR32, bh is not used, updating bl spill weight.                                                                                                        
           bl should get the same spill weight otherwise it will be choosen                                                                                              
           as a spill candidate since spilling bh doesn't make ebx available.
      This fix PR2866.
      
      llvm-svn: 67574
      7fe1b0f5
Loading