Skip to content
  1. Nov 13, 2011
    • Jakob Stoklund Olesen's avatar
      Rename SlotIndexes to match how they are used. · 90b5e565
      Jakob Stoklund Olesen authored
      The old naming scheme (load/use/def/store) can be traced back to an old
      linear scan article, but the names don't match how slots are actually
      used.
      
      The load and store slots are not needed after the deferred spill code
      insertion framework was deleted.
      
      The use and def slots don't make any sense because we are using
      half-open intervals as is customary in C code, but the names suggest
      closed intervals.  In reality, these slots were used to distinguish
      early-clobber defs from normal defs.
      
      The new naming scheme also has 4 slots, but the names match how the
      slots are really used.  This is a purely mechanical renaming, but some
      of the code makes a lot more sense now.
      
      llvm-svn: 144503
      90b5e565
  2. Sep 15, 2011
    • Jakob Stoklund Olesen's avatar
      Leave hasPHIKill flags alone in LiveInterval::RenumberValues. · e7ca8ecd
      Jakob Stoklund Olesen authored
      It is conservatively correct to keep the hasPHIKill flags, even after
      deleting PHI-defs.
      
      The calculation can be very expensive after taildup has created a
      quadratic number of indirectbr edges in the CFG, and the hasPHIKill flag
      isn't used for anything after RenumberValues().
      
      llvm-svn: 139780
      e7ca8ecd
  3. Sep 13, 2011
  4. Mar 20, 2011
  5. Mar 17, 2011
  6. Mar 12, 2011
    • Jakob Stoklund Olesen's avatar
      That's it, I am declaring this a failure of the C++03 STL. · dae1dc1f
      Jakob Stoklund Olesen authored
      There are too many compatibility problems with using mixed types in
      std::upper_bound, and I don't want to spend 110 lines of boilerplate setting up
      a call to a 10-line function. Binary search is not /that/ hard to implement
      correctly.
      
      I tried terminating the binary search with a linear search, but that actually
      made the algorithm slower against my expectation. Most live intervals have less
      than 4 segments. The early test against endIndex() does pay, and this version is
      25% faster than plain std::upper_bound().
      
      llvm-svn: 127522
      dae1dc1f
  7. Mar 11, 2011
  8. Mar 08, 2011
  9. Mar 03, 2011
  10. Mar 02, 2011
  11. Jan 19, 2011
    • Jakob Stoklund Olesen's avatar
      Implement RAGreedy::splitAroundRegion and remove loop splitting. · 9fb04015
      Jakob Stoklund Olesen authored
      Region splitting includes loop splitting as a subset, and it is more generic.
      The splitting heuristics for variables that are live in more than one block are
      now:
      
      1. Try to create a region that covers multiple basic blocks.
      2. Try to create a new live range for each block with multiple uses.
      3. Spill.
      
      Steps 2 and 3 are similar to what the standard spiller is doing.
      
      llvm-svn: 123853
      9fb04015
  12. Jan 09, 2011
  13. Dec 21, 2010
  14. Dec 19, 2010
  15. Oct 29, 2010
  16. Oct 09, 2010
  17. Oct 08, 2010
  18. Oct 05, 2010
  19. Oct 02, 2010
  20. Sep 25, 2010
  21. Sep 21, 2010
  22. Sep 08, 2010
  23. Sep 04, 2010
    • Jakob Stoklund Olesen's avatar
      Remove dead code. · 313358fe
      Jakob Stoklund Olesen authored
      Clobber ranges are no longer used when joining physical registers.
      Instead, all aliases are checked for interference.
      
      llvm-svn: 113084
      313358fe
  24. Aug 12, 2010
  25. Aug 10, 2010
    • Jakob Stoklund Olesen's avatar
      Transpose the calculation of spill weights such that we are calculating one · e00c49da
      Jakob Stoklund Olesen authored
      register at a time. This turns out to be slightly faster than iterating over
      instructions, but more importantly, it allows us to compute spill weights for
      new registers created after the spill weight pass has run.
      
      Also compute the allocation hint at the same time as the spill weight. This
      allows us to use the spill weight as a cost metric for copies, and choose the
      most profitable hint if there is more than one possibility.
      
      The new hints provide a very small (< 0.1%) but universal code size improvement.
      
      llvm-svn: 110631
      e00c49da
  26. Aug 06, 2010
  27. Aug 02, 2010
  28. Jul 26, 2010
  29. Jul 13, 2010
Loading