diff options
author | Vedant Kumar <vsk@apple.com> | 2016-04-22 06:51:37 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-04-22 06:51:37 +0000 |
commit | 6013f45f920f8b208e945007697a5601f6f956fc (patch) | |
tree | fe324d8bb253f369bf9294cbc5c0b13e6ba99570 /llvm/test/Other/opt-bisect-helper.py | |
parent | ae720dbbb61f8dcfe8bf44ec01160183c07cf40e (diff) | |
download | bcm5719-llvm-6013f45f920f8b208e945007697a5601f6f956fc.tar.gz bcm5719-llvm-6013f45f920f8b208e945007697a5601f6f956fc.zip |
Revert "Initial implementation of optimization bisect support."
This reverts commit r267022, due to an ASan failure:
http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_check/1549
llvm-svn: 267115
Diffstat (limited to 'llvm/test/Other/opt-bisect-helper.py')
-rwxr-xr-x | llvm/test/Other/opt-bisect-helper.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/llvm/test/Other/opt-bisect-helper.py b/llvm/test/Other/opt-bisect-helper.py deleted file mode 100755 index d75950f11d8..00000000000 --- a/llvm/test/Other/opt-bisect-helper.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -import argparse -import subprocess - -parser = argparse.ArgumentParser() - -parser.add_argument('--start', type=int, default=0) -parser.add_argument('--end', type=int, default=(1 << 32)) -parser.add_argument('--optcmd', default=("opt")) -parser.add_argument('--filecheckcmd', default=("FileCheck")) -parser.add_argument('--prefix', default=("CHECK-BISECT")) -parser.add_argument('--test', default=("")) - -args = parser.parse_args() - -start = args.start -end = args.end - -opt_command = [args.optcmd, "-O2", "-opt-bisect-limit=%(count)s", "-S", args.test] -check_command = [args.filecheckcmd, args.test, "--check-prefix=%s" % args.prefix] -last = None -while start != end and start != end-1: - count = int(round(start + (end - start)/2)) - cmd = [x % {'count':count} for x in opt_command] - print("opt: " + str(cmd)) - opt_result = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - filecheck_result = subprocess.Popen(check_command, stdin=opt_result.stdout) - opt_result.stdout.close() - opt_result.stderr.close() - filecheck_result.wait() - if filecheck_result.returncode == 0: - start = count - else: - end = count - -print("Last good count: %d" % start) |