diff options
author | Owen Anderson <resistor@mac.com> | 2011-09-06 23:43:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-09-06 23:43:26 +0000 |
commit | f4f09f8c26832b633e86a4a3bc0cf9999829b4d8 (patch) | |
tree | 8bcf0a6cee376e54c5a2bcea696a8d61b13dee08 /llvm/lib/Analysis/BasicAliasAnalysis.cpp | |
parent | 653cb031915219fb97c51a1b8120a5b7cc8a6c47 (diff) | |
download | bcm5719-llvm-f4f09f8c26832b633e86a4a3bc0cf9999829b4d8.tar.gz bcm5719-llvm-f4f09f8c26832b633e86a4a3bc0cf9999829b4d8.zip |
memset_pattern16 uses a 16 BYTE pattern, not a 16 BIT pattern. Add comments to that effect.
llvm-svn: 139205
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/BasicAliasAnalysis.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp index 4964c8c209e..69e942b228f 100644 --- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp +++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp @@ -847,11 +847,13 @@ BasicAliasAnalysis::getModRefInfo(ImmutableCallSite CS, const Value *Src = CS.getArgument(1); // If it can't overlap the source dest, then it doesn't modref the loc. if (isNoAlias(Location(Dest, Len), Loc)) { - if (isNoAlias(Location(Src, 2), Loc)) + // Always reads 16 bytes of the source. + if (isNoAlias(Location(Src, 16), Loc)) return NoModRef; // If it can't overlap the dest, then worst case it reads the loc. Min = Ref; - } else if (isNoAlias(Location(Src, 2), Loc)) { + // Always reads 16 bytes of the source. + } else if (isNoAlias(Location(Src, 16), Loc)) { // If it can't overlap the source, then worst case it mutates the loc. Min = Mod; } |