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

J4 ›› 2007, Vol. 29 ›› Issue (5): 141-146.

• 论文 • 上一篇    下一篇

一种SIMD优化中的向量寄存器部分重用方法

钱兴隆 臧斌宇 朱传琪   

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

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

摘要:

SIMD架构用于多媒体加速,已经广泛应用于现代通用处理器中.SIMD架构的数据并行性可大大提高处理器的运算能力,但由于存储系统的速度远远不能与其匹配,使得应用程序的性能很难获得进一步的提高.因此,本文基于SIMD架构的访存特性,提出了一种向量寄存器部分重用的方法,以提高访存效率;并给出了相应的程序转换算法,通过数据相关性的分
分析,在应用程序向量化时,生成采用向量寄存器部分重用的优化代码.实验结果说明,该算法对多媒体应用程序的性能有显著的提高.

关键词: SIMD优化 向量寄存器 部分重用 数据相关性

Abstract:

The SIMD architecture becomes one of the most popular frameworks applied to general-purpose microprocessors to boost the performance of multimedia wor   kloads. With the data-level parallelism of the SIMD architecture, the processing capability of microprocessors has been increasing dramatically. However  , the performance of applications can not keep pace because of the imperfect speed of the memory system. In this paper, based on the memory unit of the   SIMD architecture, we propose a compilation scheme to exploit the partial reuse of the vector register data, and improve memory access efficiency in SIM D optimization. According to the dependence analysis, we present a transformation strategy that generates vector codes exploiting the partial reuse of v  ector registers during the vectorization of applications. Experimental results show that our compilation technique can significantly improve the perform  ance of multimedia applications

Key words: (SIMD optimization, vector register, partial reuse, data dependence)