aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/GlobalMerge.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2023-01-31 12:25:58 -0800
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2023-01-31 12:25:58 -0800
commit15e33c699cefe0e8528ec661a2b6477f21b6cb10 (patch)
treebbe1faa9912e82eef2b9cafeed08cabe7cf24fa0 /llvm/lib/CodeGen/GlobalMerge.cpp
parentc510feb2c9c1829b455c3fb2d67ba06bb01a1f6a (diff)
downloadllvm-15e33c699cefe0e8528ec661a2b6477f21b6cb10.zip
llvm-15e33c699cefe0e8528ec661a2b6477f21b6cb10.tar.gz
llvm-15e33c699cefe0e8528ec661a2b6477f21b6cb10.tar.bz2
Revert "[MTE] Add AArch64GlobalsTagging Pass"
This reverts commit 4edfcff71e150770675a19576f698c7bbe788ee2. Broke the non-aarch64-containing target builds. https://reviews.llvm.org/D133392 has more context.
Diffstat (limited to 'llvm/lib/CodeGen/GlobalMerge.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalMerge.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/GlobalMerge.cpp b/llvm/lib/CodeGen/GlobalMerge.cpp
index 3e9a12b..2ccf2de 100644
--- a/llvm/lib/CodeGen/GlobalMerge.cpp
+++ b/llvm/lib/CodeGen/GlobalMerge.cpp
@@ -652,14 +652,6 @@ bool GlobalMerge::doInitialization(Module &M) {
if (isMustKeepGlobalVariable(&GV))
continue;
- // Don't merge tagged globals, as each global should have its own unique
- // memory tag at runtime. TODO(hctim): This can be relaxed: constant globals
- // with compatible alignment and the same contents may be merged as long as
- // the globals occupy the same number of tag granules (i.e. `size_a / 16 ==
- // size_b / 16`).
- if (GV.isTagged())
- continue;
-
Type *Ty = GV.getValueType();
if (DL.getTypeAllocSize(Ty) < MaxOffset) {
if (TM &&