28 lines · plain
1; RUN: opt --thinlto-bc --thinlto-split-lto-unit %s -o %t02; RUN: llvm-reduce -abort-on-invalid-reduction -write-tmp-files-as-bitcode --delta-passes=function-bodies,basic-blocks %t0 -o %t1 \3; RUN: --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s4; RUN: llvm-dis < %t1* | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s5 6@g = internal global i8 42, !type !07 8; CHECK-INTERESTINGNESS: @callee(9; CHECK-FINAL: declare void @callee()10define void @callee() {11 ret void12}13 14; CHECK-ALL: define void @caller()15define void @caller() {16entry:17; CHECK-ALL: call void @callee()18; CHECK-ALL: ret void19 call void @callee()20 ret void21}22define ptr @f() {23 ; CHECK-ALL: ret ptr @g.{{([0-9a-f]{32})}}24 ret ptr @g25}26 27!0 = !{i32 0, !"typeid"}28