forked from llvm/llvm-project
- Notifications
You must be signed in to change notification settings - Fork 339
/
Copy pathremove-funcs.ll
27 lines (23 loc) · 569 Bytes
/
remove-funcs.ll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; Test that llvm-reduce can remove uninteresting functions as well as
; their InstCalls.
;
; RUN: rm -rf %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-funcs.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
definei32@uninteresting1() {
entry:
reti320
}
; CHECK: interesting()
definei32@interesting() {
entry:
; CHECK: call i32 @interesting()
%call2 = calli32@interesting()
%call = calli32@uninteresting1()
reti325
}
definei32@uninteresting2() {
entry:
reti320
}
declarevoid@uninteresting3()