首页> 外国专利> Method and apparatus for loop-invariant instruction detection and elimination

Method and apparatus for loop-invariant instruction detection and elimination

机译:循环不变指令检测与消除的方法及装置

摘要

An apparatus and method for detecting and eliminating loop-invariant instructions. For example, one embodiment of a method comprises: detecting a loop start; responsively setting the loop-invariant bit for each register entry in a register alias table; executing first N iterations of the loop and responsively clearing the loop-invariant bit of any register modified during the first N iterations of the loop; identifying one or more loop-invariant registers based on the status of the loop-invariant bit in the register alias table; identifying one or more loop-invariant instructions based on the loop-invariant registers; and propagating the identified loop-invariant instructions by storing the destination register's values in a physical register file for later reuse by other instructions.
机译:一种用于检测和消除循环不变指令的设备和方法。例如,一种方法的一个实施例包括:检测循环开始;响应地为寄存器别名表中的每个寄存器条目设置循环不变位;执行循环的前N次迭代,并响应地清除在循环的前N次迭代期间修改的任何寄存器的循环不变位;根据寄存器别名表中循环不变位的状态,识别一个或多个循环不变寄存器;根据所述循环不变寄存器识别一个或多个循环不变指令;通过将目标寄存器的值存储在物理寄存器文件中以供其他指令稍后重用,来传播已标识的循环不变指令。

著录项

  • 公开/公告号US9904549B2

    专利类型

  • 公开/公告日2018-02-27

    原文格式PDF

  • 申请/专利权人 INTEL CORPORATION;

    申请/专利号US201514998295

  • 发明设计人 STANISLAV SHWARTSMAN;

    申请日2015-12-26

  • 分类号G06F9/30;G06F12/0875;

  • 国家 US

  • 入库时间 2022-08-21 12:55:21

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号