summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/FunctionAttrs.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-10 18:17:28 +0000
committerDan Gohman <gohman@apple.com>2010-11-10 18:17:28 +0000
commit68a6056dafd4913ce42606353ab1ff7208215ff2 (patch)
treec6fca5f43a9b2bb73c741ef6ef18f76e481a0eb6 /lib/Transforms/IPO/FunctionAttrs.cpp
parent7c7ddb21c3cc65ea08de8f90bb97cbdead3173f8 (diff)
downloadllvm-68a6056dafd4913ce42606353ab1ff7208215ff2.tar.gz
llvm-68a6056dafd4913ce42606353ab1ff7208215ff2.tar.bz2
llvm-68a6056dafd4913ce42606353ab1ff7208215ff2.tar.xz
Add a doesAccessArgPointees helper function, and update code to use
it, and to be consistent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r--lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp
index 2e3440066e..bb3ee46571 100644
--- a/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -133,7 +133,7 @@ bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) {
// figure out something.
if (AliasAnalysis::onlyAccessesArgPointees(MRB)) {
// If the call does access argument pointees, check each argument.
- if (MRB & AliasAnalysis::AccessesArguments)
+ if (AliasAnalysis::doesAccessArgPointees(MRB))
// Check whether all pointer arguments point to local memory, and
// ignore calls that only access local memory.
for (CallSite::arg_iterator CI = CS.arg_begin(), CE = CS.arg_end();