信息工程大学学报2026,Vol.27Issue(2):169-177,9.DOI:10.3969/j.issn.1671-0673.2026.02.006
RISC-V向量滑动指令在编译器中的自动生成方法
Automatic Generation Method of RISC-V Vector Sliding Instructions in Compilers
摘要
Abstract
Although vector sliding instructions in the RISC-V V extension exhibit significant practical value in graphics processing,signal processing and other fields,automatic generation of such instruc‑tions is not supported in the existing compiler auto-vectorization frameworks,thus limiting their perfor‑mance potential.To address this issue,an auto-vectorization framework oriented to vector sliding in‑structions is proposed.Firstly,scalar loops with target characteristics can be identified in the frame‑work,which is further automatically transformed into vectorization loops containing vector sliding in‑structions.Secondly,the framework has been integrated into the GCC compiler.Kernel functions of typi‑cal applications across multiple domains are selected for testing based on the gem5 simulator.Experi‑mental results demonstrate that automatic generation of vector sliding instructions can be effectively achieved in the proposed framework.Performance comparisons indicate that the kernel functions opti‑mized with vector sliding instructions gain remarkable performance improvements compared with those of their scalar counterparts,with a maximum speedup of 20.1 and a geometric mean speedup of 8.44.关键词
编译器/自动向量化/单指令多数据/RISC-V架构/向量滑动指令Key words
compiler/auto-vectorization/single instruction multiple data/RISC-V architecture/vec‑tor sliding instructions分类
信息技术与安全科学引用本文复制引用
姚金阳,刘福东,戚旭衍..RISC-V向量滑动指令在编译器中的自动生成方法[J].信息工程大学学报,2026,27(2):169-177,9.