diff options
author | Danila Kutenin <kutdanila@yandex.ru> | 2019-12-11 20:30:54 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-11 20:32:29 +0100 |
commit | 19e83a9b4cd4b0c2918d975f52bdfc6ba82d839f (patch) | |
tree | cd90f953f3fd52dc0da4bc9e5823414bef8371c2 /lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp | |
parent | fc765698e0c23c18732255fc7cc0f98160b66a90 (diff) | |
download | bcm5719-llvm-19e83a9b4cd4b0c2918d975f52bdfc6ba82d839f.tar.gz bcm5719-llvm-19e83a9b4cd4b0c2918d975f52bdfc6ba82d839f.zip |
[ValueTracking] Pointer is known nonnull after load/store
If the pointer was loaded/stored before the null check, the check
is redundant and can be removed. For now the optimizers do not
remove the nullptr check, see https://gcc.godbolt.org/z/H2r5GG.
The patch allows to use more nonnull constraints. Also, it found
one more optimization in some PowerPC test. This is my first llvm
review, I am free to any comments.
Differential Revision: https://reviews.llvm.org/D71177
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp')
0 files changed, 0 insertions, 0 deletions