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.
Paths
| Differential D36459
[Polly] [PPCGCodeGeneration] Compute element size in bytes for arrays correctly. ClosedPublic Authored by bollu on Aug 8 2017, 4:53 AM.
Details
Summary Previously, we used to compute this with elementSizeInBits / 8. This To fix this, ask data layout what the size in bytes should be.
Diff Detail
Event Timelinebollu retitled this revision from [HACK] [Polly] [PPCGCodeGeneration] Ignore Size 0 arrays during compile to [Polly] [PPCGCodeGeneration] Compute element size in bytes for arrays correctly..Aug 8 2017, 7:08 AM Comment ActionsReview, please. This revision is now accepted and ready to land.Aug 8 2017, 7:18 AM
Closed by commit rL310448: [PPCGCodeGeneration] Compute element size in bytes for arrays correctly. (authored by bollu). · Explain WhyAug 9 2017, 1:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 110174 lib/CodeGen/PPCGCodeGeneration.cpp
test/GPGPU/__pp_utilities_MOD_ascent.unoptimised.ll
|