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