首页> 外文会议>Proceedings of the Third IASTED International Conference on Advances in Computer Science and Technology >FORMAL EQUIVALENCE CHECKING FOR LOOP OPTIMIZATION IN C PROGRAMS WITHOUT UNROLLING
【24h】

FORMAL EQUIVALENCE CHECKING FOR LOOP OPTIMIZATION IN C PROGRAMS WITHOUT UNROLLING

机译:C语言程序中循环优化的形式等价检查

获取原文
获取原文并翻译 | 示例

摘要

In this paper, we propose an equivalence checking method for loop optimizations. Those optimizations are effective to improve the performance of both hardware and software. In our proposed method, a symbolic simulation based method is used to check the equivalence. Before applying symbolic simulation, loops are usually unrolled by certain number of times. This causes two problems. One is that the equivalence of the whole loop executions is not guaranteed if the number of unrolling is not large enough. The other is that the verification time can be very long if the loops are unrolled many times. To solve the problems, we propose the method to verify the equivalence of programs including loops and array accesses without unrolling. In the method, we extract the relations of array indexes and iterators of loops, and find the symbolic values of the iterators, for which the loops need to be executed to compute the output arrays of arbitrary indexes. Then, symbolic simulation is applied only to the specified iterations by setting the iterators to particular symbolic values. Thus, in most cases, symbolic simulation can complete the task within very small number of iterations. Finally, we show the experimental results on several loop optimizations.
机译:在本文中,我们提出了一种用于循环优化的等效检查方法。这些优化有效地改善了硬件和软件的性能。在我们提出的方法中,基于符号模拟的方法用于检查等效性。在应用符号模拟之前,循环通常会展开一​​定次数。这导致两个问题。一是如果展开的数量不够大,则不能保证整个循环执行的等效性。另一个问题是,如果多次展开循环,则验证时间可能会很长。为了解决这些问题,我们提出了一种在不展开的情况下验证包括循环和数组访问在内的程序是否等效的方法。在该方法中,我们提取数组索引与循环迭代器之间的关系,并找到迭代器的符号值,为此需要执行循环以计算任意索引的输出数组。然后,通过将迭代器设置为特定的符号值,将符号仿真仅应用于指定的迭代。因此,在大多数情况下,符号模拟可以在极少数的迭代中完成任务。最后,我们展示了几种循环优化的实验结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号