diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-23 21:18:48 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-23 21:41:53 +0100 |
commit | eb79fd3c928dbbb97f7937963361c1dad2bf8222 (patch) | |
tree | 3fe5415e95c6dd8efb53f2ce2613ee786b3cc171 /clang/lib/Basic/Module.cpp | |
parent | 87087a02ae49a907e0ec9e6dfe62c9b9ca232936 (diff) | |
download | llvm-eb79fd3c928dbbb97f7937963361c1dad2bf8222.zip llvm-eb79fd3c928dbbb97f7937963361c1dad2bf8222.tar.gz llvm-eb79fd3c928dbbb97f7937963361c1dad2bf8222.tar.bz2 |
[InstCombine] Fold gep inbounds of null to null
Effectively, this is what we were previously already doing when
the GEP was used in conjunction with a load or store, but this
fold can also be applied more generally:
> The only in bounds address for a null pointer in the default
> address-space is the null pointer itself.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions