All you need is superword-level parallelism: systematic control-flow vectorization with SLP
All you need is superword-level parallelism: systematic control-flow vectorization with SLP
复制标题
您所需要的只是超级字级并行性:使用 SLP 进行系统控制流矢量化
DOI:
--
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Saman P. Amarasinghe
中科院分区:
文献类型:
--
作者:
Yishen Chen;Charith Mendis;Saman P. Amarasinghe
Superword-level parallelism (SLP) vectorization is a proven technique for vectorizing straight-line code. It works by replacing independent, isomorphic instructions with equivalent vector instructions. Larsen and Amarasinghe originally proposed using SLP vectorization (together with loop unrolling) as a simpler, more flexible alternative to traditional loop vectorization. However, this vision of replacing traditional loop vectorization has not been realized because SLP vectorization cannot directly reason with control flow. In this work, we introduce SuperVectorization, a new vectorization framework that generalizes SLP vectorization to uncover parallelism that spans different basic blocks and loop nests. With the capability to systematically vectorize instructions across control-flow regions such as basic blocks and loops, our framework simultaneously subsumes the roles of inner-loop, outer-loop, and straight-line vectorizer while retaining the flexibility of SLP vectorization (e.g., partial vectorization). Our evaluation shows that a single instance of our vectorizer is competitive with and, in many cases, significantly better than LLVM’s vectorization pipeline, which includes both loop and SLP vectorizers. For example, on an unoptimized, sequential volume renderer from Pharr and Mark, our vectorizer gains a 3.28× speedup, whereas none of the production compilers that we tested vectorizes to its complex control-flow constructs.
DOI:
10.1109/pact.2015.32
发表时间:
2015
期刊:
--
影响因子:
--
作者:
Porpodas V
通讯作者:
Porpodas V