[polly] r281234 - Store the size of the outermost dimension in case of newly created arrays that require memory allocation.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 02:42:23 PDT 2016
2016-09-13 11:07 GMT+02:00 Johannes Doerfert via llvm-commits
<llvm-commits at lists.llvm.org>:
>> - for (int i = 0; i < SharedDims; i++)
>> - if (NewSizes[i + ExtraDimsNew] != DimensionSizes[i + ExtraDimsOld])
>> +
>> + for (int i = 0; i < SharedDims; i++) {
>> + auto &NewSize = NewSizes[i + ExtraDimsNew];
>> + auto &KnownSize = DimensionSizes[i + ExtraDimsOld];
>> + if (NewSize && KnownSize && NewSize != KnownSize)
>> return false;
>> + }
> Why do you take references of SCEV pointers here? That is not necessary
> and confusing.
This is ad-hoc code that I suggested to Roman. You are right, the
references are not necessary. I will correct this.
Michael
More information about the llvm-commits
mailing list