mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
c74403f9b4
Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D65479 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371567 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
790 B
LLVM
23 lines
790 B
LLVM
; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
|
|
;
|
|
; RUN: rm -rf %t
|
|
; RUN: mkdir %t
|
|
; copy the test file to preserve executable bit
|
|
; RUN: cp %p/Inputs/remove-args.py %t/test.py
|
|
; get the python path from lit
|
|
; RUN: echo "#!" %python > %t/test.py
|
|
; then include the rest of the test script
|
|
; RUN: cat %p/Inputs/remove-args.py >> %t/test.py
|
|
|
|
; RUN: llvm-reduce --test %t/test.py %s -o %t/out.ll
|
|
; RUN: cat %t/out.ll | FileCheck -implicit-check-not=uninteresting %s
|
|
; REQUIRES: plugins
|
|
|
|
; CHECK: @interesting(i32 %interesting)
|
|
define void @interesting(i32 %uninteresting1, i32 %interesting, i32 %uninteresting2) {
|
|
entry:
|
|
; CHECK: call void @interesting(i32 0)
|
|
call void @interesting(i32 -1, i32 0, i32 -1)
|
|
ret void
|
|
}
|