diff options
author | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-08 22:16:33 +0000 |
---|---|---|
committer | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-08 22:16:33 +0000 |
commit | ddc64eb948c7e71039325f21bc4e1cc763494da5 (patch) | |
tree | dbe0cd9c324b0fbad0c464911ee0ec74057a9873 /llvm/test/Reduce/Inputs | |
parent | bb17e46644bbebdc665ccdee941aab48a9ee0bd4 (diff) | |
download | bcm5719-llvm-ddc64eb948c7e71039325f21bc4e1cc763494da5.tar.gz bcm5719-llvm-ddc64eb948c7e71039325f21bc4e1cc763494da5.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
llvm-svn: 368358
Diffstat (limited to 'llvm/test/Reduce/Inputs')
-rwxr-xr-x | llvm/test/Reduce/Inputs/remove-funcs.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Reduce/Inputs/remove-funcs.py b/llvm/test/Reduce/Inputs/remove-funcs.py new file mode 100755 index 00000000000..dc0203ce515 --- /dev/null +++ b/llvm/test/Reduce/Inputs/remove-funcs.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +import sys + +input = open(sys.argv[1], "r") +for line in input: + if "@interesting" in line: + sys.exit(0) + +sys.exit(1) # IR isn't interesting |