期刊论文详细信息
Jisuanji kexue
Loop Fusion Strategy Based on Data Reuse Analysis in Polyhedral Compilation
HU Wei-fang, CHEN Yun, LI Ying-ying, SHANG Jian-dong1 
[1] 1 Supercomputing Center of Henan Province,Zhengzhou 450000,China<
关键词: compiler optimization|polyhedral model|llvm|loop fusion|data locality;   
DOI  :  10.11896/jsjkx.210200071
来源: DOAJ
【 摘 要 】

Existing polyhedral compilation tools often use some simple heuristic strategies to find the optimal loop fusion decisions.It is necessary to manually adjust the loop fusion strategy to get the best performance for different programs.To solve this problem,a fusion strategy based on data reuse analysis is proposed for multi-core CPU platform.This strategy avoids unnecessary fusion constraints that affecting the mining of data locality.For different stages of scheduling,the parallelism constraint for diffe-rent parallel levels is proposed.And a tiling constraint for CPU cache optimization is proposed for statements with complex array accesses.Compared with the previous loop fuion strategies,this strategy takes into account the changes in spatial locality when calculating the fusion profits.This strategy is implemented based on the polyhedral compilation module Polly in the LLVM compilation framework,and some test cases in test suites such as Polybench are selected for testing.In the case of single-core testing,compared with the existing fusion strategies,the average performance is improved by 14.9%~62.5%.In the case of multi-core testing,compared with the existing fusion strategies,the average performance is improved by 19.7%~94.9%,and the speedup is up to 1.49x~3.07x.

【 授权许可】

Unknown   

  文献评价指标  
  下载次数:0次 浏览次数:2次