[llvm] CodeGenPrepare: Remove threadlocal_address intrinsic when cheap to recompute. (PR #87844)
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 10:40:33 PDT 2024
================
@@ -0,0 +1,149 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
+; RUN: llc -o - %s | FileCheck %s
+; RUN: llc -o - -relocation-model=pic %s | FileCheck --check-prefix=CHECK_PIC %s
+target triple = "x86_64--linux-gnu"
+
+ at foo = dso_local thread_local global i32 0, align 4
+ at foo_nonlocal = thread_local global i32 0, align 4
----------------
MatzeB wrote:
good catch, this was intended for the 2nd function so we see `dso_local` and non-`dso_local` variables referenced in the test.
https://github.com/llvm/llvm-project/pull/87844
More information about the llvm-commits
mailing list