[polly] record delinearization result and reuse it in polyhedral translation

Sebastian Pop spop at codeaurora.org
Tue Jun 3 09:22:19 PDT 2014


Tobias Grosser wrote:
> This looks good in general, but it would be good to explain _why_ we
> are doing this and to provide a test case that shows that this is
> necessary.

In the polyhedral translation there are two ways to delinearize together all
array subscripts touching the same base address: either duplicate the code from
scop detection to first gather all array references and then run the
delinearization; or the solution that I implemented and that we discussed at one
of the polly phone calls, that is to use the same delinearization info that we
computed during scop detection.

I added a testcase that checks that we delinearize together all the subscripts,
otherwise we would end on a different representation.  Please see attached an
updated patch.  Ok to commit?

Thanks,
Sebastian
-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-record-delinearization-result-and-reuse-it-in-polyhe.patch
Type: text/x-diff
Size: 13859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140603/37791c38/attachment.patch>


More information about the llvm-commits mailing list