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.
This commit is contained in:
Maria Markova 2023-06-27 10:54:17 +02:00 committed by GitHub
parent ef4bb4e374
commit b2cdf6bcc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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