[llvm-commits] [llvm] r139205 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

Owen Anderson resistor at mac.com
Tue Sep 6 16:43:26 PDT 2011


Author: resistor
Date: Tue Sep  6 18:43:26 2011
New Revision: 139205

URL: http://llvm.org/viewvc/llvm-project?rev=139205&view=rev
Log:
memset_pattern16 uses a 16 BYTE pattern, not a 16 BIT pattern.  Add comments to that effect.

Modified:
    llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=139205&r1=139204&r2=139205&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Tue Sep  6 18:43:26 2011
@@ -847,11 +847,13 @@
       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;
       }





More information about the llvm-commits mailing list