高级检索

    循环交换与递归消除

    Loop Interchanging and Recurrence Breaking

    • 摘要: 本文讨论了FORTRAN程序向量化中循环交换及递归消除的技巧。对多重紧嵌式循环,讨论了在向量机KJ 8920上进行循环交换时应考虑的几个原则。若多重循环满足交换合法性,当内循环变量是外层循环变量的单调函数时,给出了交换后循环变量上、下界的一般表达式。基于相关分析法,对依赖图中存在递归回路的DO 循环,描述了消除递归性的最佳区间分割算法。

       

      Abstract: This paper discusses some advanced vectorization techniques related to interchangingDO loops and breaking recurrences.Several rules of loop interchanging on vector computer KJ8920 arepresented for multiply-nested DO loops.For multiple loops satisfying the conditions of interchanging,the exact loop bound expressions after interchanging are given if the bounds of the inner DO loopare invariants or strictly monotone functions of the outer loop index.Based on the relevance analysisapproach,we represent the optimal interval segmentation algorithm,which removes the cycle from thedependence graph by dividing the interval of DO loops.

       

    /

    返回文章
    返回