首页>
外国专利>
Method of replacing lvalues by variables in programs containing nested aggregates in an optimizing compiler
Method of replacing lvalues by variables in programs containing nested aggregates in an optimizing compiler
展开▼
机译:在优化编译器中用包含嵌套聚合的程序中的变量替换左值的方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method for analyzing and optimizing programs that define and use aggregate data structures. A program to be analyzed and optimized is inspected to find definitions and uses of lvalues, which are regions of memory. The lvalues may be denoted by program variables, pointer expressions, or components of aggregate lvalues. A data-flow solver determines where definitions of lvalues reach uses. A set of "least general unifiers" are computed for the definitions and uses. A replacement variable is created for each least general unifier that is determined to be replaceable. Each reference to an lvalue that corresponds to a replaceable least general unifier is replaced by a reference to the corresponding replacement variable or a component thereof. The method is applicable even in the presence of potential aliasing.
展开▼