https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114531
--- Comment #7 from Rama Malladi <rvmallad at amazon dot com> --- (In reply to Rama Malladi from comment #5) > (In reply to Andrew Pinski from comment #3) > > Also do you have numbers with lto enabled? Or is these without lto? > > > > Does LTO improve the situation for Envoy too? > > These numbers are without lto. I haven't tried it but I can try and post an > update. I checked and found the Envoy run was w/o LTO but SPEC cpu2017 intrate was w LTO. I tried a build of Envoy w LTO and it failed. I need to debug that issue further. Below are perf results w/o LTO. gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04). copies=8 -O2 -Ofast Gain w -O2 + inlining Gain w noLTO noLTO Ofast noLTO inlining 500.perlbench_r 33.7 33.3 98.8% 33.2 98.5% 502.gcc_r 45.2 46.9 103.8% 46.3 102.4% 505.mcf_r 44.7 44.3 99.1% 44.6 99.8% 520.omnetpp_r 21.4 24.4 114.0% 21.3 99.5% 523.xalancbmk_r 41.6 45.5 109.4% 44 105.8% 525.x264_r 44.2 89 201.4% 43.9 99.3% 531.deepsjeng_r 32.8 32.8 100.0% 33.1 100.9% 541.leela_r 28.6 30.5 106.6% 30.3 105.9% 548.exchange2_r 64.1 64.6 100.8% 64.1 100.0% 557.xz_r 20.3 20.4 100.5% 20.3 100.0% SPECrate..base 35.6 39.4 110.7% 36 101.1%