首页> 外国专利> LINEAR-TIME ALGORITHM TO DETERMINE THE MAXIMUM NUMBER OF ITERATIONS OF THE ITERATIVE ALGORITHM FOR DATA-FLOW ANALYSIS FOR REDUCIBLE LOOPS

LINEAR-TIME ALGORITHM TO DETERMINE THE MAXIMUM NUMBER OF ITERATIONS OF THE ITERATIVE ALGORITHM FOR DATA-FLOW ANALYSIS FOR REDUCIBLE LOOPS

机译:线性时间算法,用于确定可循环循环的数据流分析的迭代算法的最大迭代次数

摘要

A compiler converts a human readable high level program into a corresponding machine language program. This invention improves data-flow analysis. A compiler implementing data-flow analysis typically relies on an iterative algorithm for data-flow analysis. According to the prior art determination of the exact number of loop iterations required for convergence was believed impractical. The prior art selected a maximum number of data-flow analysis iterations relatively arbitrarily. This invention calculates the number of iterations for convergence using backedges in a control flow graph of the source program. This permits the data-flow analysis to be run for exactly the number of iterations needed for convergence. In the event of convergence, an extra, useless iteration is avoided. In the event of non-convergence, valid data can be separated from invalid data, whereas all data was previously discarded.
机译:编译器将人类可读的高级程序转换为相应的机器语言程序。本发明改进了数据流分析。实现数据流分析的编译器通常依赖于迭代算法进行数据流分析。根据现有技术,确定收敛所需的精确循环迭代次数被认为是不切实际的。现有技术相对任意地选择了最大数量的数据流分析迭代。本发明使用源程序的控制流程图中的后缘计算收敛的迭代次数。这样就可以针对收敛所需的确切迭代次数运行数据流分析。在收敛的情况下,避免了额外的,无用的迭代。在不收敛的情况下,可以将有效数据与无效数据分开,而先前已丢弃所有数据。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号