Summary: This also changes all the outs() statements to errs() so the output and progress streams don't get mixed. This has been added because D64176 had flaky tests, which I believe were because the reduced file was being catted into `FileCheck`, instead of being pass from STDOUT directly. Reviewers: chandlerc, dblaikie, xbolva00 Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66314 llvm-svn: 369060
31 lines
643 B
LLVM
31 lines
643 B
LLVM
; Test that llvm-reduce can remove uninteresting functions as well as
|
|
; their InstCalls.
|
|
;
|
|
; RUN: llvm-reduce --test %p/Inputs/remove-funcs.py %s -o - | FileCheck %s
|
|
; REQUIRES: plugins, shell
|
|
|
|
; CHECK-NOT: uninteresting1()
|
|
define i32 @uninteresting1() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK: interesting()
|
|
define i32 @interesting() {
|
|
entry:
|
|
; CHECK: call i32 @interesting()
|
|
%call2 = call i32 @interesting()
|
|
; CHECK-NOT: call i32 @uninteresting1()
|
|
%call = call i32 @uninteresting1()
|
|
ret i32 5
|
|
}
|
|
|
|
; CHECK-NOT: uninteresting2()
|
|
define i32 @uninteresting2() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK-NOT: uninteresting3()
|
|
declare void @uninteresting3()
|