================
@@ -385,6 +386,20 @@ AliasResult TypeBasedAAResult::alias(const MemoryLocation
&LocA,
return AliasResult::NoAlias;
}
+AliasResult TypeBasedAAResult::aliasErrno(const MemoryLocation &Loc,
+ const Module *M) {
+ if (!shouldUseTBAA())
+ return AliasResult::MayAlias;
+
+ const auto *ErrnoTBAAMD = M->getNamedMetadata("llvm.errno.tbaa");
----------------
nikic wrote:
Avoid lookup if we don't have TBAA in the first place.
https://github.com/llvm/llvm-project/pull/125258
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits