首页> 外国专利> System, method, and computer program product for partial redundancy elimination based on static single assignment form during compilation

System, method, and computer program product for partial redundancy elimination based on static single assignment form during compilation

机译:用于在编译期间基于静态单分配形式消除部分冗余的系统,方法和计算机程序产品

摘要

Partial redundancy elimination of a computer program is described that operates using a static single assignment (SSA) representation of a computer program. The SSA representation of the computer program is processed to eliminate partially redundant expressions in the computer program. This processing involves inserting &PHgr; functions for expressions where different values of the expressions reach common points in the computer program. A result of each of the &PHgr; functions is stored in a hypothetical variable h. The processing also involves a renaming step where SSA versions are assigned to hypothetical variables h in the computer program, a down safety step of determining whether each . PHI. function in the computer program is down safe, and a will be available step of determining whether each expression in the computer program will be available at each &PHgr; function following eventual insertion of code into the computer program for purposes of partial redundancy elimination. The processing also includes a finalize step of transforming the SSA representation of the computer program having hypothetical variables h to a SSA graph that includes some insertion information reflecting eventual insertions of code into the computer program for purposes of partial redundancy elimination, and a code motion step of updating the SSA graph based on the insertion information to introduce real temporary variables t for the hypothetical variables h.
机译:描述了一种计算机程序的部分冗余消除,该计算机程序使用计算机程序的静态单指派(SSA)表示进行操作。处理计算机程序的SSA表示以消除计算机程序中的部分冗余表达式。此处理涉及插入&PHgr;表达式的函数,其中表达式的不同值达到计算机程序中的共同点。每个&PHgr;的结果函数存储在假设变量h中。该处理还包括重命名步骤,其中将SSA版本分配给计算机程序中的假设变量h,一个确定是否每个变量的向下安全性步骤。 PHI。该计算机程序中的函数是向下安全的,并且将确定该计算机程序中的每个表达式是否在每个&PHgr处可用的步骤将可用。最终将代码插入计算机程序以实现部分冗余消除的功能。该处理还包括完成步骤,该步骤将具有假设变量h的计算机程序的SSA表示转换为SSA图,该SSA图包括一些插入信息,这些信息反映了最终为了部分冗余消除而向计算机程序中插入了代码,以及代码移动步骤。基于插入信息更新SSA图以为假设变量h引入实际临时变量t的过程。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号