Make GlobalsAA ignore dead constant expressions.
authorEli Friedman <efriedma@codeaurora.org>
Tue, 4 Oct 2016 00:03:55 +0000 (00:03 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Tue, 4 Oct 2016 00:03:55 +0000 (00:03 +0000)
commit74bed9d7575973202a38743722def09fee51413b
tree4ecfe64dc908a1dd3e9c7498b85b27656acae6b5
parent396bfdd7076325be148e1e95c433b78849c1083d
Make GlobalsAA ignore dead constant expressions.

Slightly improves the precision of GlobalsAA in certain situations, and
makes the behavior of optimization passes more predictable.

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

llvm-svn: 283165
llvm/lib/Analysis/GlobalsModRef.cpp
llvm/test/Analysis/GlobalsModRef/dead-uses.ll [new file with mode: 0644]