1 ; RUN: opt -module-summary -o %t %s
2 ; RUN: opt -module-summary -o %t2 %S/Inputs/dead-strip-fulllto.ll
4 ; Adding '--pass-remarks-with-hotness' should not cause crash.
5 ; RUN: llvm-lto2 run --pass-remarks-output=%t4.yaml --pass-remarks-filter=. --pass-remarks-with-hotness \
6 ; RUN: %t -r %t,main,px -r %t,live1, -r %t,live2,p -r %t,dead2,p \
7 ; RUN: %t2 -r %t2,live1,p -r %t2,live2, -r %t2,dead1,p -r %t2,dead2, -r %t2,odr, \
8 ; RUN: -save-temps -o %t3
10 ; RUN: cat %t4.yaml | FileCheck %s -check-prefix=REMARK
11 ; RUN: llvm-nm %t3.0 | FileCheck --check-prefix=FULL %s
12 ; RUN: llvm-nm %t3.1 | FileCheck --check-prefix=THIN %s
14 ; RUN: llvm-lto2 run %t -r %t,main,px -r %t,live1, -r %t,live2,p -r %t,dead2,p \
15 ; RUN: %t2 -r %t2,live1,p -r %t2,live2, -r %t2,dead1,p -r %t2,dead2, -r %t2,odr, \
16 ; RUN: -save-temps -o %t3 -O0
17 ; RUN: llvm-nm %t3.0 | FileCheck --check-prefix=FULL %s
18 ; RUN: llvm-nm %t3.1 | FileCheck --check-prefix=THIN %s
21 ; REMARK-NEXT: Name: deadfunction
22 ; REMARK-NEXT: Function: dead2
24 ; REMARK-NEXT: - Function: dead2
25 ; REMARK-NEXT: - String: ' not added to the combined module '
37 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
38 target triple = "x86_64-unknown-linux-gnu"
47 define void @live2() {
51 define void @dead2() {
55 !0 = !{i32 1, !"ThinLTO", i32 0}
56 !llvm.module.flags = !{ !0 }