HomePhabricator

[PPCGCodeGeneration] Compute element size in bytes for arrays correctly.

Description

[PPCGCodeGeneration] Compute element size in bytes for arrays correctly.

Previously, we used to compute this with elementSizeInBits / 8. This
would yield an element size of 0 when the array had element size < 8 in
bits.

To fix this, ask data layout what the size in bytes should be.

Differential Revision: https://reviews.llvm.org/D36459

Details

Committed
bolluAug 9 2017, 1:29 AM
Differential Revision
D36459: [Polly] [PPCGCodeGeneration] Compute element size in bytes for arrays correctly.
Branches
Unknown
Tags
Unknown