From b2cdf6bcc36cea3a1f7783f584c35beb7348b7a6 Mon Sep 17 00:00:00 2001 From: Maria Markova Date: Tue, 27 Jun 2023 10:54:17 +0200 Subject: [PATCH] Adding of O3 on linking stage for OPTIMIZATION=-O3 cases (#12339) Added missing O3 flag to linking stage in default option "-O3 -flto". Flags doesn't lead to significant changes in performance: - +0.21% in geomean for all benchmarks on ICX bare-metal (256 cpus) - +0.33% in geomean for all benchmarks on m6i.2xlarge (16 cpus) Checked on redis from Mar'30 (commit 1f76bb17ddcb2adc484bf82f1b839c45e264524f ). Comparison file is attached. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index a20c86983..ecbd2753d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -23,7 +23,7 @@ ifeq ($(OPTIMIZATION),-O3) else REDIS_CFLAGS+=-flto=auto endif - REDIS_LDFLAGS+=-flto + REDIS_LDFLAGS+=-O3 -flto endif DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram fpconv NODEPS:=clean distclean