[llvm] [MTE] Do not allow local aliases to MTE globals (PR #106280)

Evgenii Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 13:36:29 PDT 2024


================
@@ -110,6 +110,10 @@ bool GlobalValue::isInterposable() const {
 }
 
 bool GlobalValue::canBenefitFromLocalAlias() const {
+  if (isTagged()) {
+    // Cannot create local aliases to MTE tagged globals.
----------------
eugenis wrote:

Consider extending the comment to explain why (because the address of an MTE global includes a tag that is assigned by the dynamic loader in GOT).

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


More information about the llvm-commits mailing list