[polly] r265795 - [ScopInfo] Fix check for element size mismatch.

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 09:36:39 PDT 2016


On 04/08/2016 06:20 PM, Michael Kruse via llvm-commits wrote:
> Author: meinersbur
> Date: Fri Apr  8 11:20:08 2016
> New Revision: 265795
>
> URL: http://llvm.org/viewvc/llvm-project?rev=265795&view=rev
> Log:
> [ScopInfo] Fix check for element size mismatch.
>
> The way to get the elements size with getPrimitiveSizeInBits() is not
> the same as used in other parts of Polly which should use
> DataLayout::getTypeAllocSize(). Its use only queries the size of the
> pointer and getPrimitiveSizeInBits returns 0 for types that require a
> DataLayout object such as pointers.
>
> Together with r265379, this should fix PR27195.

Thank you, very nice!

Tobias


More information about the llvm-commits mailing list