Constant propagation and copy propagation are code transformations that may avoid some load operations and can enable other optimizations. In literature, constant and copy propagations are considered two independent transformations requiring two different data flow analyses. Here we give a generic definition for copy propagation which enables us to view constant propagation as a particular case of copy propagation and formulate a novel data flow analysis that unifies these two transformations.
翻译:常态传播和复制传播是代码转换,可能避免某些负荷操作,并可能促成其他优化。 在文献中,常态传播和复制传播被视为两个独立的转换,需要两种不同的数据流分析。这里我们给出了复制传播的通用定义,使我们能够将不断传播视为复制传播的特例,并编制新的数据流分析,使这两个转换统一起来。