summaryrefslogtreecommitdiffstats
path: root/llvm/test/Reduce/Inputs
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-08 22:16:33 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-08 22:16:33 +0000
commitddc64eb948c7e71039325f21bc4e1cc763494da5 (patch)
treedbe0cd9c324b0fbad0c464911ee0ec74057a9873 /llvm/test/Reduce/Inputs
parentbb17e46644bbebdc665ccdee941aab48a9ee0bd4 (diff)
downloadbcm5719-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-xllvm/test/Reduce/Inputs/remove-funcs.py10
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
OpenPOWER on IntegriCloud