1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt < %s -passes=globalopt -S | FileCheck %s
4 @X = internal global i32 4 ; <ptr> [#uses=1]
7 ; CHECK-LABEL: define i32 @foo() local_unnamed_addr {
8 ; CHECK-NEXT: ret i32 4
10 %V = load i32, ptr @X ; <i32> [#uses=1]
14 @X_tls = internal thread_local global i32 13
17 ; CHECK-LABEL: define i32 @bar() local_unnamed_addr {
18 ; CHECK-NEXT: ret i32 13
20 %p = call ptr @llvm.threadlocal.address(ptr @X_tls)