mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 05:30:29 +00:00
596e6cecd1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372054 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
569 B
LLVM
28 lines
569 B
LLVM
; 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
|
|
|
|
define i32 @uninteresting1() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK: interesting()
|
|
define i32 @interesting() {
|
|
entry:
|
|
; CHECK: call i32 @interesting()
|
|
%call2 = call i32 @interesting()
|
|
%call = call i32 @uninteresting1()
|
|
ret i32 5
|
|
}
|
|
|
|
define i32 @uninteresting2() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
declare void @uninteresting3()
|