首页> 外国专利> 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.
机译:通过使用虚拟标识分配语句,对单入口强连接区域或程序循环中的私有变量进行私有化或标识。虚拟标识分配语句V = V插入到每个变量V的每个单入口强连接区域的标头块和退出后块中,并在单入口强连接区域(SCR)中进行定义。确定伪身份分配语句的USE功能。 SCR标头块中变量的虚拟定义用于测试是否存在与SCR中的变量有关的循环传输流依赖性。 SCR的退出后块中变量的虚拟定义用于测试是否需要在退出SCR时将变量复制出来。 SCR头块中变量的虚拟定义用于测试是否仅需要复制变量的最后迭代值。如果没有循环依赖于SCR中的变量,并且在SCR退出时没有变量的副本,或者在SCR退出时没有变量的副本,并且只有最后一个变量,则确定变量为私有迭代需要被复制。大大减少了在单入口强连接区域中标识私有变量所需的执行时间和内存。确定变量在SCR中是否私有的执行时间最坏的情况是与控制流程图中变量的定义和使用数量成线性比例关系。

著录项

  • 公开/公告号US5790859A

    专利类型

  • 公开/公告日1998-08-04

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号US19950576173

  • 发明设计人 VIVEK SARKAR;

    申请日1995-12-21

  • 分类号G06F9/45;

  • 国家 US

  • 入库时间 2022-08-22 02:38:57

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号