From 582a9d0a6375109dd1e92fdcc43c5cd458db299a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 6 Nov 2014 17:11:40 +0100 Subject: improved optimisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 2 +- src/benchmark-flags | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index db3635d..915a88e 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissi LDOPTIMISE = # -flto -flto-compression-level -flto-partition={1to1,balanced,mix,none} -flto-report -flto-report-wpa -fwpa -COPTIMISE = -fkeep-inline-functions -falign-functions=0 -fdata-sections -Ofast +COPTIMISE = -falign-functions=0 -fkeep-inline-functions -fmerge-all-constants -Ofast FLAGS = -std=gnu99 $(WARN) diff --git a/src/benchmark-flags b/src/benchmark-flags index 9c8c4ba..840d04c 100755 --- a/src/benchmark-flags +++ b/src/benchmark-flags @@ -59,7 +59,7 @@ while true; do ! grep ^error .benchmarks >/dev/null 2>/dev/null - good_flag="$(sort -n < .benchmarks | cut -d ' ' -f 2 | sed 1q)" + good_flag="$(median < .benchmarks | sort -n | cut -d ' ' -f 2 | sed 1q)" if [ "${good_flag}" = zzz ] || [ $pass = 2 ]; then if [ $pass = 1 ]; then pass=2 -- cgit v1.2.3-70-g09d2