diff options
author | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-06 18:59:11 +0000 |
---|---|---|
committer | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-06 18:59:11 +0000 |
commit | 800618f24190e0dcf32d8528cdd76426744a1b52 (patch) | |
tree | c2005eccabde33ac1a39dbaa8b70167adafa3106 /llvm/test/Reduce/Inputs | |
parent | 7dfe0bc3c162877a4643831b7917fc195098aac6 (diff) | |
download | bcm5719-llvm-800618f24190e0dcf32d8528cdd76426744a1b52.tar.gz bcm5719-llvm-800618f24190e0dcf32d8528cdd76426744a1b52.zip |
Added Delta IR Reduction Tool
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file.
Reviewers: alexshap, chandlerc
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63672
llvm-svn: 368071
Diffstat (limited to 'llvm/test/Reduce/Inputs')
-rwxr-xr-x | llvm/test/Reduce/Inputs/remove-funcs.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Reduce/Inputs/remove-funcs.sh b/llvm/test/Reduce/Inputs/remove-funcs.sh new file mode 100755 index 00000000000..2ea2a1a30ad --- /dev/null +++ b/llvm/test/Reduce/Inputs/remove-funcs.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# lli is passed as a test-arg so lit can recognize it +ret=$($2 $1) + +if [[ $ret = 10 ]]; then + exit 0 +else + exit 1 +fi |