summaryrefslogtreecommitdiffstats
path: root/llvm/test/ThinLTO/X86/Inputs/index-const-prop-cache-foo.ll
blob: a306b5a3491fd35c7f090e976b59b8835acbc7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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
OpenPOWER on IntegriCloud