mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
5ccdb04d28
These were initially added to cleanup some transient/leftover files in r372054. Now that's all cleaned up, these are no longer needed.
27 lines
552 B
LLVM
27 lines
552 B
LLVM
; Test that llvm-reduce can remove uninteresting functions as well as
|
|
; their InstCalls.
|
|
;
|
|
; 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()
|