1 ; RUN: opt -S -passes=globalopt < %s | FileCheck %s
3 ; CHECK: @tmp = local_unnamed_addr global i32 42
5 @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__I_a, ptr null }]
8 define i32 @TheAnswerToLifeTheUniverseAndEverything() {
12 define void @_GLOBAL__I_a() {
14 %tmp1 = call i32 @TheAnswerToLifeTheUniverseAndEverything()
15 store i32 %tmp1, ptr @tmp
16 %cmp = icmp eq i32 %tmp1, 42
17 call void @llvm.assume(i1 %cmp)
21 declare void @llvm.assume(i1)