From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: Re: 500 MHz 21164 vs P166 ?!
Date: 20 May 1997 14:57:50 +0200 [thread overview]
Message-ID: <bbf6ccf20bfd05e0b69502e2233dc9d0.axp-list@archive.invalid> (raw)
Stephan Kanthak <kanthak@gazelle.informatik.rwth-aachen.de> writes:
> >Try '-funroll-loops'. This often helps, and it isn't turned on by any
> >-O<x> level. Also avoid unnecessary float/integer conversions.
> I remember Linus saying that '-funroll-all-loops' makes Alphas much slower
> because small loops do no longer fit into L1/L2 cache. Is this true for
> '-funroll-loops', too, or does GCC unroll loops then with respect to L1/L2
> cache size?
'don't know about the cache issue, but citing the gcc info pages:
`-funroll-loops'
Perform the optimization of loop unrolling. This is only done for
loops whose number of iterations can be determined at compile time
or run time. `-funroll-loop' implies both `-fstrength-reduce' and
`-frerun-cse-after-loop'.
`-funroll-all-loops'
Perform the optimization of loop unrolling. This is done for all
loops and usually makes programs run more slowly.
`-funroll-all-loops' implies `-fstrength-reduce' as well as
`-frerun-cse-after-loop'.
I indeed never got an performance increase with
'-funroll-all-loops'. However, I measured an about 10% performace
increase (21064/Jensen) by using '-funroll-loops' on povray.
And that's just one example. Depending how tight the inner loops are,
it can be much better. But it might be a good idea to use profiling
and only to apply this option on certain files.
Martin
--
Martin Ostermann | mailto:ost@comnets.rwth-aachen.de
Communication Networks | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany | faxto:++49/241/8888242
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-05-20 12:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-20 12:57 Martin Ostermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-06-06 17:51 500 MHz 21164 vs P166 ?! Eric Smith
[not found] <Pine.SGI.3.95.970606104557.983C-100000@leonardo.sr.unh.edu>
1997-06-06 15:19 ` Bradford Smith
[not found] <339a3c91.259410838@monarch.bess.net>
1997-06-02 23:34 ` Woodstock
1997-06-02 22:26 Michael J. Donahue
1997-05-22 8:44 Martin Ostermann
[not found] <43bu66e1wx.fsf@comnets.rwth-aachen.de>
1997-05-21 18:46 ` Heikki Virkkunen
[not found] <XFMail.970520095955.kanthak@Gazelle.Informatik.RWTH-Aachen.DE>
1997-05-20 17:15 ` Volker Barthelmann
[not found] <43k9kueh9f.fsf@comnets.rwth-aachen.de>
1997-05-20 7:55 ` Stephan Kanthak
1997-05-20 7:26 Martin Ostermann
[not found] <Pine.SGI.3.95.970517002216.15379E-100000@leonardo.sr.unh.edu>
1997-05-17 18:29 ` Ken Haste Andersen
[not found] <Pine.LNX.3.96.970516171235.4358A-100000@stud.pg.infn.it>
1997-05-16 17:31 ` Zach
1997-05-17 4:25 ` Ben Scott
1997-06-02 21:27 ` Alex Krowitz
1997-06-02 21:37 ` Timm Gleason
1997-06-02 21:39 ` Lee Burnside
1997-06-06 14:56 ` Ben Scott
1997-05-16 16:23 Jim Nance
1997-05-16 15:16 Ciro Cattuto
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox