期刊文献+

控制流图上支配关系计算方法的分析与实现 被引量:1

Analysis and Implementation of the Computation of Dominator in CFG
下载PDF
导出
摘要 支配关系在数据流分析和静态单赋值等程序分析和优化中应用很广泛。采用位向量表示支配结点集合,描述了采用迭代法计算控制流图上支配结点集合的算法,在支配结点集合的基础上讨论了对直接支配结点、支配边界结点的计算方法,并在NPB和SPEC2000测试集上进行了测试。测试结果表明:控制流图的构建占用了过程内支配关系计算的几乎一半时间;对于不包含goto语句的结构化程序,迭代算法一般只需迭代2次。 Compilers use dominance information extensively during program analysis and optimization, such as data-flow analysis and the computation of static single-assignment forms. The iterative method to compute dominators was discussed in detail, in which dominator relation is represented by bit vector. Based on the result of dominators, the method to compute immediate dominator and dominator frontier was given. At last, experimental results of NPB and SPEC2000 were presented,which show that construction of intraprocedual CFG takes almost half of the total time; if goto statement is not contained in structural program, the iterative algorithm will finish in two iterations.
出处 《计算机科学》 CSCD 北大核心 2009年第3期54-57,77,共5页 Computer Science
基金 国家863计划资助项目(2006AA01Z408)资助
关键词 控制流图 迭代算法 位向量 支配关系 CFG, Iterative formulation, Bit vector, Dominator
  • 相关文献

参考文献19

  • 1Sathyanathan P W. Interprocedural Dataflow Analysis - Alias Analysis. Ph. D thesis. Stanford University, 2001
  • 2Cooper K D, Harvey T J, et al. A Simple, Fast Dominance Algorithm. Http://www. cs. rice. edu/- keith/EMBED/dom14. pdf,1999
  • 3Georgiadis L,Werneck R F, et al. Finding Dominators in Practice. www. cs. princeton. edu/-lgeorgia/dominators_esa04. pdf, 2004
  • 4Cytron R, Ferrante J, Rosen B K, et al. Efficiently Computing static single assignment form and the control dependence graph. ACM Transactions on Programming Languages and Systems, 1991,13 (4) : 451-490
  • 5Prosser R . Applications of Boolean matrices to the analysis of flow diagrams//Proceedings of the Eastern Joint Computer Con ferenee. Spartan Books, NY, USA, Dee. 1959 : 133-138
  • 6Sharir M. Structural analysis: A new approach to flow analysis in optimizing compilers, 1980,5 : 141-153
  • 7Sweany P H , Beaty S J. Dominator - path scheduling : A global scheduling method//Proceedings of the 25^th International Symposium on Microarchitectrue. 1992 : 260-263
  • 8Amyeen M E, Fuchs W K, et al. Fault equivalence identification using redundancy information and static and dynamic extraction ///Proceedings of the 19^th IEEE VLSI Test Symposium. March 2001
  • 9Lowry E, Medlock C. Object code optimization. Communications of the ACM,Jan. 1969 :13-22
  • 10Allen F E. Control flow analysis. SIGPLAN Notices, 1970, 5 (7):1-19

同被引文献13

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部