summaryrefslogtreecommitdiffstats
path: root/llvm/test/Reduce/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Reduce/Inputs')
-rwxr-xr-xllvm/test/Reduce/Inputs/remove-global-vars.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Reduce/Inputs/remove-global-vars.py b/llvm/test/Reduce/Inputs/remove-global-vars.py
new file mode 100755
index 00000000000..81fbea937dd
--- /dev/null
+++ b/llvm/test/Reduce/Inputs/remove-global-vars.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+import sys
+
+input = open(sys.argv[1], "r")
+for line in input:
+ if "@interesting = global" in line:
+ sys.exit(0)
+
+sys.exit(1) # IR isn't interesting
OpenPOWER on IntegriCloud