已收录 268921 条政策
 政策提纲
  • 暂无提纲
Reducing the impact of spill code
[摘要] All graph-coloring register allocators rely on heuristics to arrive at a ;;good;; answer to the NP-complete problem of allocation, resulting in suboptimal code. We look at a post-pass to the allocator which removes unnecessary spill code by finding places where the availability of an unused register allows us to ;;promote;; a spill to a register. We explain and correct an error in Briggs;; code that sometimes inserts an excessive and unnecessary number of spill instructions. The fix to this bug has an insignificant impact on the runtime of the compiler and never causes a degradation in runtime of the code produced. We suggest minimizing the impact of the spill code through the use of a small separate memory dedicated to spills and under the exclusive control of the compiler. We show an algorithm and experimental results which suggest that this hardware construct would significantly decrease the runtime of the code.
[发布日期]  [发布机构] Rice University
[效力级别]  [学科分类] 
[关键词]  [时效性] 
   浏览次数:12      统一登录查看全文      激活码登录查看全文