首页> 外国专利> Method for improving global common subexpression elimination and code motion in an optimizing compiler

Method for improving global common subexpression elimination and code motion in an optimizing compiler

机译:在优化编译器中改善全局通用子表达式消除和代码运动的方法

摘要

A method for use during the optimizatin phase of an optimizing compiler for performing global common subexpression elimination and code motion which comprises:PPDetermining the code `basis` for the object program which includes examining each basic block of code and determining the `basis` items on which each computation depends wherein `basis` items are defined as operands which are referenced in a basic block before being computed. The method next determines the "kill set" for each `basis` item. Following this UEX, DEX, and THRU are determined for each basic block using the previously determined `basis` and "kill set" information. AVAIL and INSERT are computed from UEX, DEX, and THRU, and appropriate code insertions are made at those locations indicated by the preceding step, and finally redundant code is removed using the AVAIL set.
机译:一种在优化编译器的优化阶段用于执行全局通用子表达式消除和代码运动的方法,包括:

确定目标程序的代码“基础”,包括检查每个基本代码块并确定每个计算所依赖的“基础”项,其中“基础”项被定义为在计算之前在基本块中引用的操作数。接下来,该方法为每个“基础”项目确定“杀死组合”。在此UEX之后,使用先前确定的“基础”和“杀死集”信息为每个基本块确定DEX和THRU。根据UEX,DEX和THRU计算AVAIL和INSERT,并在上一步指示的那些位置进行适当的代码插入,最后使用AVAIL集删除冗余代码。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号