public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC missing -flto optimizations?  SPEC lbm benchmark
@ 2019-02-14 19:30 Steve Ellcey
  2019-02-15  9:12 ` Bin.Cheng
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Ellcey @ 2019-02-14 19:30 UTC (permalink / raw)
  To: gcc

I have a question about SPEC CPU 2017 and what GCC can and cannot do
with -flto.  As part of some SPEC analysis I am doing I found that with
-Ofast, ICC and GCC were not that far apart (especially spec int rate,
spec fp rate was a slightly larger difference).

But when I added -ipo to the ICC command and -flto to the GCC command,
the difference got larger.  In particular the 519.lbm_r was more than
twice as fast with ICC and -ipo, but -flto did not help GCC at all.

There are other tests that also show this type of improvement with -ipo
like 538.imagick_r, 544.nab_r, 525.x264_r, 531.deepsjeng_r, and
548.exchange2_r, but none are as dramatic as 519.lbm_r.  Anyone have
any idea on what ICC is doing that GCC is missing?  Is GCC just not
agressive enough with its inlining?

Steve Ellcey
sellcey@marvell.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-02-16 14:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 19:30 GCC missing -flto optimizations? SPEC lbm benchmark Steve Ellcey
2019-02-15  9:12 ` Bin.Cheng
2019-02-15  9:48   ` Jun Ma
2019-02-15 12:45     ` Hi-Angel
2019-02-15 13:12       ` Richard Biener
2019-02-15 13:15         ` Jakub Jelinek
2019-02-15 13:34           ` Ramana Radhakrishnan
2019-02-15 15:01       ` Ian Lance Taylor
2019-02-15 18:10         ` Joel Sherrill
2019-02-15 18:28           ` Richard Kenner
2019-02-15 20:52           ` Eric Botcazou
2019-02-15 17:53     ` [EXT] " Steve Ellcey
2019-02-16 14:36       ` Jun Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).