OSDN Git Service

[ValueTracking] Look through constant Int2Ptr/Ptr2Int expressions
authorJohannes Doerfert <jdoerfert@anl.gov>
Mon, 15 Jul 2019 03:24:35 +0000 (03:24 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Mon, 15 Jul 2019 03:24:35 +0000 (03:24 +0000)
commit3a69c49584cc3ab0728d33b20a21ef3d1b86cdf9
tree251eb7138acd02d44aaec4117b0dfefe4699038f
parent685668bc06abd96fc10c540a7d1d46f61749fdd2
[ValueTracking] Look through constant Int2Ptr/Ptr2Int expressions

Summary:
This is analogous to the int2ptr/ptr2int instruction handling introduced
in D54956.

Reviewers: fhahn, efriedma, spatel, nlopes, sanjoy, lebedev.ri

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64708

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366036 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Transforms/FunctionAttrs/nonnull.ll