xref: /llvm-project/llvm/test/ThinLTO/X86/Inputs/promote-local-name-1.ll (revision d5d3eb16b7ab72529c83dacb2889811491e48909)
1source_filename = "llvm/test/LTO/X86/promote-local-name-1.ll"
2
3target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-unknown-linux-gnu"
5
6@baz = internal constant i32 10, align 4
7
8; Function Attrs: noinline nounwind uwtable
9define i32 @b() {
10entry:
11  %call = call i32 @foo()
12  ret i32 %call
13}
14
15; Function Attrs: noinline nounwind uwtable
16define internal i32 @foo() {
17entry:
18  %0 = load i32, ptr @baz, align 4
19  ret i32 %0
20}
21