summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit066c1bb1e9d3510029ec82c433667020a7af0e44 (patch)
treeb6fc52fea4c8c93c8d316fd77ca000bc3be94705 /llvm/lib/Transforms
parent08feef886171032cc854330746aa644023c26c92 (diff)
downloadbcm5719-llvm-066c1bb1e9d3510029ec82c433667020a7af0e44.tar.gz
bcm5719-llvm-066c1bb1e9d3510029ec82c433667020a7af0e44.zip
Add a doesAccessArgPointees helper function, and update code to use
it, and to be consistent. llvm-svn: 118692
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 2e3440066e6..bb3ee465716 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud