[ARM] Masked load and store and predicate tests. NFC
[llvm-core.git] / test / Reduce / remove-funcs.ll
blob5a9c48c7485c095d01049b87b1d5bc71566c4fc9
1 ; Test that llvm-reduce can remove uninteresting functions as well as
2 ; their InstCalls.
4 ; RUN: llvm-reduce --test %p/Inputs/remove-funcs.py %s -o - | FileCheck %s
5 ; REQUIRES: plugins, shell
7 ; CHECK-NOT: uninteresting1()
8 define i32 @uninteresting1() {
9 entry:
10   ret i32 0
13 ; CHECK: interesting()
14 define i32 @interesting() {
15 entry:
16   ; CHECK: call i32 @interesting()
17   %call2 = call i32 @interesting()
18   ; CHECK-NOT: call i32 @uninteresting1()
19   %call = call i32 @uninteresting1()
20   ret i32 5
23 ; CHECK-NOT: uninteresting2()
24 define i32 @uninteresting2() {
25 entry:
26   ret i32 0
29 ; CHECK-NOT: uninteresting3()
30 declare void @uninteresting3()