• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (10): 135-138.

• 论文 • 上一篇    下一篇

一种非可规约循环的投机并行方法

邓之刚[1] 曾国荪[2] 周静[3]   

  • 出版日期:2007-10-01 发布日期:2010-06-02

  • Online:2007-10-01 Published:2010-06-02

摘要:

传统的并行编译器在处理非可规约循环时一般使用结点分割法,但由此带来的代码复制是不可避免的。本文使用投机的方法来挖掘非可规约循环的并行性,该方法在编译时查找 程序中的非可规约循环,在运行时使用"持续引用"策略预测该循环的入口,进而实现非可规约循环的并行化。

关键词: 非可规约循环 持续引用 投机并行 失败恢复

Abstract:

Irreducible loop is a kind of loop with multi-entries. These loops are called irreducible because dominated relationship does not exist among the nodes in them. Traditional paralhlized compiler techniques use node splitting to make irreducible loops reducible, but will make code duplicate inevitably.   This paper proposes a speculative method to exploit parllelism in irredudbh loops. This method finds irreducible loops at compile time and predicts the  entry at run time using a strategy called"persistency reference", then parallelizes irreducible loops as natural loops. Experimental results show thatt the method is effective and efficient.

Key words: (irreducible loop, persistency reference, speculative parallel ism, recovery)