发明名称 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.
申请公布号 US5790859(A) 申请公布日期 1998.08.04
申请号 US19950576173 申请日期 1995.12.21
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 SARKAR, VIVEK
分类号 G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址