diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-10 18:17:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-10 18:17:28 +0000 |
commit | 066c1bb1e9d3510029ec82c433667020a7af0e44 (patch) | |
tree | b6fc52fea4c8c93c8d316fd77ca000bc3be94705 /llvm/lib/Transforms | |
parent | 08feef886171032cc854330746aa644023c26c92 (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |