1 ; RUN: opt -module-summary %s -o %t1.bc
2 ; RUN: llvm-lto2 run -print-summary-global-ids -dump-thin-cg-sccs %t1.bc -o %t.index.bc \
3 ; RUN: -r %t1.bc,external,px -r %t1.bc,l2,pl -r %t1.bc,l1,pl \
4 ; RUN: -r %t1.bc,simple,pl -r %t1.bc,root,pl 2>&1 | FileCheck %s
6 ; CHECK: 5224464028922159466{{.*}} is external
7 ; CHECK: 765152853862302398{{.*}} is l2
8 ; CHECK: 17000277804057984823{{.*}} is l1
9 ; CHECK: 15440740835768581517{{.*}} is simple
10 ; CHECK: 5800840261926955363{{.*}} is root
12 ; CHECK: SCC (2 nodes) {
13 ; CHECK-NEXT: {{^}} 17000277804057984823 (has loop)
14 ; CHECK-NEXT: {{^}} 765152853862302398 (has loop)
17 ; CHECK: SCC (1 node) {
18 ; CHECK-NEXT: {{^}} 15440740835768581517{{$}}
21 ; CHECK: SCC (1 node) {
22 ; CHECK-NEXT: External 5224464028922159466{{$}}
25 ; CHECK: SCC (1 node) {
26 ; CHECK-NEXT: {{^}} 5800840261926955363{{$}}
29 ; Dummy call graph root that points at all roots of the callgraph.
30 ; CHECK: SCC (1 node) {
31 ; CHECK-NEXT: {{^}} 0{{$}}
34 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
35 target triple = "x86_64-unknown-linux-gnu"
37 declare void @external()
49 define i32 @simple() {