llvm-project/llvm/test/ThinLTO/X86/Inputs/index-const-prop-cache-foo.ll

20 lines
504 B
LLVM

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@gFoo = internal unnamed_addr global i32 1, align 4
; Function Attrs: norecurse nounwind readonly ssp uwtable
define i32 @foo() local_unnamed_addr {
%1 = load i32, i32* @gFoo, align 4
ret i32 %1
}
; Function Attrs: nounwind ssp uwtable
define void @bar() local_unnamed_addr {
%1 = tail call i32 @rand()
store i32 %1, i32* @gFoo, align 4
ret void
}
declare i32 @rand() local_unnamed_addr