Skip to content

Commit

Permalink
[BOLT][utils] Remove heatmap mode detection from wrapper script
Browse files Browse the repository at this point in the history
Heatmap mode has been moved to a separate tool. Drop the support in
llvm-bolt-wrapper.
  • Loading branch information
aaupov committed Dec 1, 2023
1 parent bc80240 commit 76a9ea1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bolt/utils/llvm-bolt-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def run_cmd(cmd, out_f, cfg):
def run_bolt(bolt_path, bolt_args, out_f, cfg):
p2b = os.path.basename(sys.argv[0]) == "perf2bolt" # perf2bolt mode
bd = os.path.basename(sys.argv[0]) == "llvm-boltdiff" # boltdiff mode
hm = sys.argv[1] == "heatmap" # heatmap mode
cmd = ["/usr/bin/time", "-f", "%e %M", bolt_path] + bolt_args
if p2b:
# -ignore-build-id can occur at most once, hence remove it from cmd
Expand All @@ -121,7 +120,7 @@ def run_bolt(bolt_path, bolt_args, out_f, cfg):
cmd += PERF2BOLT_MODE
elif bd:
cmd += BOLTDIFF_MODE
elif not cfg.NO_MINIMIZE and not hm:
elif not cfg.NO_MINIMIZE:
cmd += MINIMIZE_DIFFS
return run_cmd(cmd, out_f, cfg)

Expand Down

0 comments on commit 76a9ea1

Please sign in to comment.