diff options
author | Siddharth Bhat <siddu.druid@gmail.com> | 2017-07-25 12:35:36 +0000 |
---|---|---|
committer | Siddharth Bhat <siddu.druid@gmail.com> | 2017-07-25 12:35:36 +0000 |
commit | 43f178bbc9c75aea3df73632ae5fb4ca59a96c99 (patch) | |
tree | b41ccb6bdfb9a977753e874815ddc0eeddee435c /lldb/packages/Python/lldbsuite/test/help/TestHelp.py | |
parent | e4130d52dae7fa7b8f9adb474ecb8a355209549d (diff) | |
download | bcm5719-llvm-43f178bbc9c75aea3df73632ae5fb4ca59a96c99.tar.gz bcm5719-llvm-43f178bbc9c75aea3df73632ae5fb4ca59a96c99.zip |
[PPCGCodeGeneration] Skip arrays with empty extent.
Invariant load hoisted scalars, and arrays whose size we can statically compute
to be 0 do not need to be allocated as arrays.
Invariant load hoisted scalars are sent to the kernel directly as parameters.
Earlier, we used to allocate `0` bytes of memory for these because our
computation of size from `PPCGCodeGeneration::getArraySize` would result in `0`.
Now, since we don't invariant loads as arrays in PPCGCodeGeneration, this
problem does not occur anymore.
Differential Revision: https://reviews.llvm.org/D35795
llvm-svn: 308971
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/help/TestHelp.py')
0 files changed, 0 insertions, 0 deletions