[flang-commits] [flang] [flang] add tbaa tags to global variables (PR #68727)

Renaud Kauffmann via flang-commits flang-commits at lists.llvm.org
Wed Oct 11 09:10:08 PDT 2023


================
@@ -406,7 +406,7 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v) {
         attributes.set(Attribute::Pointer);
     }
 
-  if (type == SourceKind::Global)
+  if (type == SourceKind::Global || type == SourceKind::Direct)
----------------
Renaud-K wrote:

No, they would not alias unless they have target/pointer attributes. I will be looking into the example and spend more time on this today.

https://github.com/llvm/llvm-project/pull/68727


More information about the flang-commits mailing list