Commit 5346237c authored by Kirill Smelkov's avatar Kirill Smelkov

X compilebench: Rework how `tcc -O2` is skipped

Don't continue on `if $CC == tcc` -> instead put actions that are not
appropriate for `tcc -O2` under `if $CC != tcc`. We will add other
actions to that loop - that's the reason.

In preparation to add pystone_pyx.pyx
parent aae7ed82
...@@ -89,10 +89,7 @@ for CC in gcc tcc; do ...@@ -89,10 +89,7 @@ for CC in gcc tcc; do
done done
# tcc -O2 does not add anything (tcc accepts -Ox only for compatibility) # tcc -O2 does not add anything (tcc accepts -Ox only for compatibility)
if [ $CC == tcc ]; then if [ $CC != tcc ]; then
continue
fi
for i in `seq $N`; do for i in `seq $N`; do
export TIMEFORMAT="Benchmark${CC}compile+linkO2 1 %R s/op" export TIMEFORMAT="Benchmark${CC}compile+linkO2 1 %R s/op"
time compileandlink pystone_pypyx "-O2" time compileandlink pystone_pypyx "-O2"
...@@ -101,5 +98,7 @@ for CC in gcc tcc; do ...@@ -101,5 +98,7 @@ for CC in gcc tcc; do
for i in `seq $N`; do for i in `seq $N`; do
python -c 'import pystone_pypyx as _; _.main()' |pystone2bench ${CC}O2 python -c 'import pystone_pypyx as _; _.main()' |pystone2bench ${CC}O2
done done
fi
done done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment