summaryrefslogtreecommitdiff
path: root/test/Bitcode/thinlto-unused-type-tests.ll
blob: c2c5dd2f9a301a71a09d0cf4b9cd74a92c91ee7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt -module-summary %s -o %t.o
; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s

; CHECK-NOT: <TYPE_TESTS
define void @f() {
  %p = call i1 @llvm.type.test(i8* null, metadata !"foo")
  %q = call i1 @llvm.type.test(i8* null, metadata !"bar")
  call void @llvm.assume(i1 %q)
  ret void
}

declare i1 @llvm.type.test(i8*, metadata) nounwind readnone
declare void @llvm.assume(i1)