全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Copy propagation, value numbering, dead code?

又称: copy propagation · value numbering · dead code

Definition 8.13 University Computer Science — Year 3 · 第 8 章 — Program Analysis and Optimisation

Copy propagation replaces a use of xx by yy where the copy x=yx = y is available: on every path to the point, it was executed and neither xx nor yy was written since. Value numbering gives each computed value a number, such that two operations with the same operator on operands with the same numbers get the same number; a computation whose value already has a temporary is replaced by a copy of it. An instruction is dead code if it can never run, or if it has no effect but writing a temporary that is not live after it; dead-code elimination removes it.

在原文中阅读 →