diff options
author | Siddharth Bhat <siddu.druid@gmail.com> | 2017-08-09 08:29:16 +0000 |
---|---|---|
committer | Siddharth Bhat <siddu.druid@gmail.com> | 2017-08-09 08:29:16 +0000 |
commit | 34eeabbca3157958f62131fd4b7beeb4d9c203f8 (patch) | |
tree | 0bb2f1ca40b42af274e4501c76b6920cfe97328d /llvm/lib/Analysis/CGSCCPassManager.cpp | |
parent | b049158a559ca1d7082b17af201f2a5d68a46c36 (diff) | |
download | bcm5719-llvm-34eeabbca3157958f62131fd4b7beeb4d9c203f8.tar.gz bcm5719-llvm-34eeabbca3157958f62131fd4b7beeb4d9c203f8.zip |
[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
llvm-svn: 310448
Diffstat (limited to 'llvm/lib/Analysis/CGSCCPassManager.cpp')
0 files changed, 0 insertions, 0 deletions