Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsteinn committed Nov 3, 2024
1 parent 05a7596 commit f8accf2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion llvm/llvm-project
Submodule llvm-project updated 6101 files
4 changes: 1 addition & 3 deletions scripts/comptime_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
v2_file = sys.argv[2]
threshold = 0.001

if not os.path.exists(v1_file) and not os.path.exists(v2_file):
if not os.path.exists(v2_file):
exit(1)
if not os.path.exists(v1_file):
shutil.copyfile(v2_file, v1_file)
exit(0)
if not os.path.exists(v2_file):
exit(1)

def load(filename):
res = dict()
Expand Down
4 changes: 1 addition & 3 deletions scripts/comptime_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
threshold = 0.001
topk = 5

if not os.path.exists(v1_file) and not os.path.exists(v2_file):
if not os.path.exists(v2_file):
exit(1)
if not os.path.exists(v1_file):
shutil.copyfile(v2_file, v1_file)
exit(0)
if not os.path.exists(v2_file):
exit(1)

def load(filename):
res = dict()
Expand Down
4 changes: 1 addition & 3 deletions scripts/stats_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
v1_file = sys.argv[1]
v2_file = sys.argv[2]

if not os.path.exists(v1_file) and not os.path.exists(v2_file):
if not os.path.exists(v2_file):
exit(1)
if not os.path.exists(v1_file):
shutil.copyfile(v2_file, v1_file)
exit(0)
if not os.path.exists(v2_file):
exit(1)

v1 = json.load(open(v1_file))
v2 = json.load(open(v2_file))
Expand Down
2 changes: 1 addition & 1 deletion scripts/update.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python3
import sys
import os
import subprocess
Expand Down
8 changes: 8 additions & 0 deletions scripts/update_optimized.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ then
else
python3 scripts/update.py --bench bench --stats --out scripts/pr-comment.md
fi
ret=$?
git show --name-only | grep -E "bench|stats.baseline"
if [ $? -eq 0 ] || [ $ret -ne 0 ]
then
echo "SHOULD_OPEN_ISSUE=1" >> $GITHUB_OUTPUT
else
echo "SHOULD_OPEN_ISSUE=0" >> $GITHUB_OUTPUT
fi

0 comments on commit f8accf2

Please sign in to comment.