首页>
外国专利>
Method of, system for, and computer program product for efficient identification of private variables in program loops by an optimizing compiler
Method of, system for, and computer program product for efficient identification of private variables in program loops by an optimizing compiler
展开▼
机译:通过优化的编译器有效识别程序循环中的私有变量的方法,系统和计算机程序产品
展开▼
页面导航
摘要
著录项
相似文献
摘要
Privatization or identification of private variables in single- entry strongly connected regions or program loops by the use of dummy identity assignment statements. Dummy identity assignment statements, V=V, are inserted in the header block and postexit blocks of each single- entry strongly connected region for each variable V with a definition in the single-entry strongly connected region (SCR). USE functions of the dummy identity assignment statements are determined. The dummy definition of a variable in an SCR header block is used to test if there exists a loop- carried flow dependence on the variable in the SCR. Dummy definitions of the variable in postexit blocks of the SCR are used to test if the variable would require to be copied out on exit from the SCR. The dummy definition of the variable in header block of the SCR is used to test if only the last iteration value of the variable needs to be copied out. A variable is ascertained to be private if there is no loop carried dependence on the variable in the SCR, and either no copy out of the variable on exit from the SCR, or copy out of the variable on exit from the SCR and only the last iteration needs to be copied. The execution time and memory required for identifying private variables in single- entry strongly connected regions are substantially reduced. The execution time to determine if a variable is private in an SCR is at worst linearly proportional to the number of definitions and uses of the variable in a control flow graph.
展开▼