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 | 68a6056dafd4913ce42606353ab1ff7208215ff2 (patch) | |
tree | c6fca5f43a9b2bb73c741ef6ef18f76e481a0eb6 /lib/Transforms/IPO | |
parent | 7c7ddb21c3cc65ea08de8f90bb97cbdead3173f8 (diff) | |
download | external_llvm-68a6056dafd4913ce42606353ab1ff7208215ff2.zip external_llvm-68a6056dafd4913ce42606353ab1ff7208215ff2.tar.gz external_llvm-68a6056dafd4913ce42606353ab1ff7208215ff2.tar.bz2 |
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')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 2e34400..bb3ee46 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(); |