[IPSCCP] Move common functions to ValueLatticeUtils (NFC)
authorMatthew Simpson <mssimpso@codeaurora.org>
Fri, 13 Oct 2017 17:53:44 +0000 (17:53 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Fri, 13 Oct 2017 17:53:44 +0000 (17:53 +0000)
commit2284937bbcb5be87ccfdba477254d6a6390e7430
treece94513be82e9bb8ac2b2efa9b82a5cb79ff1db4
parentc419c9f640deeeccc7de8afd84f5d54aa05c7136
[IPSCCP] Move common functions to ValueLatticeUtils (NFC)

This patch moves some common utility functions out of IPSCCP and makes them
available globally. The functions determine if interprocedural data-flow
analyses can propagate information through function returns, arguments, and
global variables.

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

llvm-svn: 315719
llvm/include/llvm/Analysis/ValueLatticeUtils.h [new file with mode: 0644]
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/ValueLatticeUtils.cpp [new file with mode: 0644]
llvm/lib/Transforms/Scalar/SCCP.cpp