【24h】

Aliased Register Allocation for Straight-Line Programs Is NP-Complete

机译:直线程序的别名寄存器分配已完成NP

获取原文
获取原文并翻译 | 示例

摘要

Register allocation is NP-complete in general but can be solved in linear time for straight-line programs where each variable has at most one definition point if the bank of registers is homogeneous. In this paper we study registers which may alias: an aliased register can be used both independently or in combination with an adjacent register. Such registers are found in commonly-used architectures such as x86, the HP PA-RISC, the Sun SPARC processor, and MIPS floating point. In 2004, Smith, Ramsey, and Holloway presented the best algorithm for aliased register allocation so far; their algorithm is based on a heuristic for coloring of general graphs. Most architectures with register aliasing allow only aligned registers to be combined: for example, the low-address register must have an even number. Open until now is the question of whether working with restricted classes of programs can improve the complexity of aliased register allocation with alignment restrictions. In this paper we show that aliased register allocation with alignment restrictions for straight-line programs is NP-complete.
机译:寄存器分配通常是NP完全的,但是对于直线程序,如果寄存器组是同质的,则每个变量最多具有一个定义点,可以在线性时间内解决。在本文中,我们研究可能会混叠的寄存器:混叠寄存器既可以单独使用,也可以与相邻寄存器组合使用。可以在诸如x86,HP PA-RISC,Sun SPARC处理器和MIPS浮点之类的常用体系结构中找到此类寄存器。 2004年,Smith,Ramsey和Holloway提出了迄今为止最好的别名寄存器分配算法;他们的算法基于一般图形着色的启发式算法。大多数具有寄存器别名的体系结构仅允许组合对齐的寄存器:例如,低地址寄存器必须具有偶数。迄今为止尚未解决的问题是,使用受限类的程序是否可以通过对齐限制来提高别名寄存器分配的复杂性。在本文中,我们证明了针对直线程序具有对齐限制的别名寄存器分配是NP完全的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号