mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
llvm-reduce: Use %python from lit to get the correct/valid python binary for the reduction script
llvm-svn: 371143
This commit is contained in:
parent
0e95174423
commit
37feb2e286
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
|
@ -1,8 +1,17 @@
|
||||
; 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
|
||||
; RUN: rm -rf %t
|
||||
; RUN: mkdir %t
|
||||
; copy the test file to preserve executable bit
|
||||
; RUN: cp %p/Inputs/remove-funcs.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-funcs.py >> %t/test.py
|
||||
|
||||
; RUN: llvm-reduce --test %t/test.py %s -o - | FileCheck %s
|
||||
; REQUIRES: plugins
|
||||
|
||||
; CHECK-NOT: uninteresting1()
|
||||
define i32 @uninteresting1() {
|
||||
|
@ -1,7 +1,16 @@
|
||||
; Test that llvm-reduce can remove uninteresting Global Variables as well as
|
||||
; their direct uses (which in turn are replaced with 'undef').
|
||||
;
|
||||
; RUN: llvm-reduce --test %p/Inputs/remove-global-vars.py %s -o - | FileCheck %s
|
||||
; RUN: rm -rf %t
|
||||
; RUN: mkdir %t
|
||||
; copy the test file to preserve executable bit
|
||||
; RUN: cp %p/Inputs/remove-global-vars.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-global-vars.py >> %t/test.py
|
||||
|
||||
; RUN: llvm-reduce --test %t/test.py %s -o - | FileCheck %s
|
||||
; REQUIRES: plugins
|
||||
|
||||
; CHECK: @interesting = global
|
||||
|
Loading…
x
Reference in New Issue
Block a user