Enhance GVN to do more precise alias queries for non-local memory
[oota-llvm.git] / include / llvm / Analysis / AliasAnalysis.h
index 17abae4eb9082f8426a33c84abf94b017936f779..302204e41b2de1f2d694a0be1c5348a455fdb00b 100644 (file)
@@ -107,6 +107,12 @@ public:
       return Copy;
     }
 
+    Location getWithNewSize(uint64_t NewSize) const {
+      Location Copy(*this);
+      Copy.Size = NewSize;
+      return Copy;
+    }
+
     Location getWithoutTBAATag() const {
       Location Copy(*this);
       Copy.TBAATag = 0;