Optimistic Delinearization of Parametrically Sized Arrays
Optimistic Delinearization of Parametrically Sized Arrays
复制标题
参数大小数组的乐观去线性化
DOI:
10.1145/2751205.2751248
复制
发表时间:
2015
期刊:
影响因子:
--
通讯作者:
Sebastian Pop
中科院分区:
文献类型:
--
作者:
T. Grosser;J. Ramanujam;L. Pouchet;P. Sadayappan;Sebastian Pop
A number of legacy codes make use of linearized array references (i.e., references to one-dimensional arrays) to encode accesses to multi-dimensional arrays. This is also true of a number of optimized libraries and the well-known LLVM intermediate representation, which linearize array accesses. In many cases, the only information available is an array base pointer and a single dimensional offset. For problems with parametric array extents, this offset is usually a multivariate polynomial. Compiler analyses such as data dependence analysis are impeded because the standard formulations with integer linear programming (ILP) solvers cannot be used. In this paper, we present an approach to delinearization, i.e., recovering the multi-dimensional nature of accesses to arrays of parametric size. In case of insufficient static information, the developed algorithm produces run-time conditions to validate the recovered multi-dimensional form. The obtained access description enhances the precision of data dependence analysis. Experimental evaluation in the context of the LLVM/Polly system using a number of benchmarks reveals significant performance benefits due to increased precision of dependence analysis and enhanced optimization opportunities that are exploited by the compiler after delinearization.