Extend the AliasAnalysis::pointsToConstantMemory interface to allow it
authorDan Gohman <gohman@apple.com>
Mon, 8 Nov 2010 16:45:26 +0000 (16:45 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 8 Nov 2010 16:45:26 +0000 (16:45 +0000)
commita25e5dbcc2371352386a01e3c1b8e76dd890272b
tree2d67b72b4ac69a9de510506f4182d2ac8b62edb8
parentc80cbf25402e4095fafbb15a2ab1b81cf6feda77
Extend the AliasAnalysis::pointsToConstantMemory interface to allow it
to optionally look for constant or local (alloca) memory.

Teach BasicAliasAnalysis::pointsToConstantMemory to look through Select
and Phi nodes, and to support looking for local memory.

Remove FunctionAttrs' PointsToLocalOrConstantMemory function, now that
AliasAnalysis knows all the tricks that it knew.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118412 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/AliasAnalysis.h
lib/Analysis/AliasAnalysis.cpp
lib/Analysis/AliasAnalysisCounter.cpp
lib/Analysis/AliasDebugger.cpp
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/NoAliasAnalysis.cpp
lib/Analysis/TypeBasedAliasAnalysis.cpp
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/2008-12-29-Constant.ll