aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorabhishek-kaushik22 <abhishek.kaushik@intel.com>2024-11-07 17:10:28 +0800
committerGitHub <noreply@github.com>2024-11-07 10:10:28 +0100
commitd2aff182d379c9b84cebe0fdf58907f4de768f1e (patch)
treed5595ebd43b48a5c04b401a863c251234c4166a7 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent5f342816efe1854333f2be41a03fdd25fa0db433 (diff)
downloadllvm-d2aff182d379c9b84cebe0fdf58907f4de768f1e.zip
llvm-d2aff182d379c9b84cebe0fdf58907f4de768f1e.tar.gz
llvm-d2aff182d379c9b84cebe0fdf58907f4de768f1e.tar.bz2
Revert "TLS loads opimization (hoist)" (#114740)
This reverts commit c31014322c0b5ae596da129cbb844fb2198b4ef4. Based on the discussions in #112772, this pass is not needed after the introduction of `llvm.threadlocal.address` intrinsic. Fixes https://github.com/llvm/llvm-project/issues/112771.
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index aff7410..782ed60 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -881,9 +881,6 @@ void TargetPassConfig::addIRPasses() {
if (!DisableExpandReductions)
addPass(createExpandReductionsPass());
- if (getOptLevel() != CodeGenOptLevel::None)
- addPass(createTLSVariableHoistPass());
-
// Convert conditional moves to conditional jumps when profitable.
if (getOptLevel() != CodeGenOptLevel::None && !DisableSelectOptimize)
addPass(createSelectOptimizePass());