1 ; Test for a bug specific to the new pass manager where we may build a domtree
2 ; to make more precise AA queries for functions.
4 ; RUN: opt -passes='no-op-module' -debug-pass-manager -thinlto-bc -thinlto-split-lto-unit -o %t %s
5 ; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s
6 ; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s
8 target triple = "x86_64-unknown-linux-gnu"
10 %struct.hoge = type { %struct.widget }
11 %struct.widget = type { ptr }
13 ; M0: @global = local_unnamed_addr global
15 @global = local_unnamed_addr global %struct.hoge { %struct.widget { ptr getelementptr inbounds ({ [3 x ptr] }, ptr @global.1, i32 0, inrange i32 0, i32 2) } }, align 8
17 ; M0: @global.1 = external unnamed_addr constant
18 ; M1: @global.1 = linkonce_odr unnamed_addr constant
19 @global.1 = linkonce_odr unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr @global.4, ptr @quux] }, align 8, !type !0
21 ; M0: @global.2 = external global
23 @global.2 = external global ptr
25 ; M0: @global.3 = linkonce_odr constant
27 @global.3 = linkonce_odr constant [22 x i8] c"zzzzzzzzzzzzzzzzzzzzz\00"
29 ; M0: @global.4 = linkonce_odr constant
30 ; M1: @global.4 = external constant
31 @global.4 = linkonce_odr constant { ptr, ptr }{ ptr getelementptr inbounds (ptr, ptr @global.2, i64 2), ptr @global.3 }
33 @llvm.global_ctors = appending global [0 x { i32, ptr, ptr }] zeroinitializer
35 declare i32 @quux(ptr) unnamed_addr
37 !0 = !{i64 16, !"yyyyyyyyyyyyyyyyyyyyyyyyy"}