[llvm-commits] [llvm] r118615 - /llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
Dan Gohman
gohman at apple.com
Tue Nov 9 11:50:00 PST 2010
Author: djg
Date: Tue Nov 9 13:50:00 2010
New Revision: 118615
URL: http://llvm.org/viewvc/llvm-project?rev=118615&view=rev
Log:
AccessesArgumentsReadonly is read-only.
Modified:
llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
Modified: llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/AliasAnalysis.h?rev=118615&r1=118614&r2=118615&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysis.h Tue Nov 9 13:50:00 2010
@@ -270,7 +270,9 @@
/// true. For use when the call site is not known.
///
static bool onlyReadsMemory(ModRefBehavior MRB) {
- return MRB == DoesNotAccessMemory || MRB == OnlyReadsMemory;
+ return MRB == DoesNotAccessMemory ||
+ MRB == AccessesArgumentsReadonly ||
+ MRB == OnlyReadsMemory;
}
More information about the llvm-commits
mailing list