第10章 机器无关优化.pptVIP

  • 1
  • 0
  • 约2.9千字
  • 约 12页
  • 2016-11-28 发布于河南
  • 举报
第10章 机器无关优化

Chapter 10 Optimization Code Optimization and Phases Quicksort in C Partition in Three-Address Code Partition Flow Graph Local Common Subexpressions Global Common Subexpressions Copy Propagation Assignments of the form f := g are called copy statements (or copies) The idea behind copy propagation is to use g for f whenever possible after such a statement For example, applied to block B5 of the previous flow graph, we obtain: x := t3 a[t2] := t5 a[t4] := t3 goto B2 Copy propagation often turns the copy statement into dead code Dead-Code Elimination Dead code includes code that can never be reac

文档评论(0)

1亿VIP精品文档

相关文档