public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/20945] [4.0/4.1 Regresson] about 2x perfomance regression in comparision with 3.4.2
[not found] <bug-20945-7607@http.gcc.gnu.org/bugzilla/>
@ 2005-10-17 9:27 ` steven at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-17 9:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from steven at gcc dot gnu dot org 2005-10-17 09:27 -------
Comments #4 and #5 suggest that there is still some slowdown compared to
gcc 3.4 and earlier, but we know what the problems are and we have open
bug reports for those problems.
Since this bug is now inactive for many months, and there really is not
much information in this bug that isn't reported elsewhere, I'm going to
close this one. After looking at the code differences between 3.4 and 4.1,
I suspect PR18048 is the main source of trouble for the remaining slowdown
so I'm closing this one as a dup of PR18048.
*** This bug has been marked as a duplicate of 18048 ***
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20945
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/20945] New: about 2x perfomance regression in comparision with 3.4.2
@ 2005-04-11 13:17 denis dot nagorny at intel dot com
2005-07-10 19:55 ` [Bug rtl-optimization/20945] [4.0/4.1 Regresson] " pinskia at gcc dot gnu dot org
2005-09-29 4:08 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: denis dot nagorny at intel dot com @ 2005-04-11 13:17 UTC (permalink / raw)
To: gcc-bugs
fortran 4.0 shows perfomance regression (with -O2 option) in comparison with
g77 from 3.4.2 on IA32 with attached test. This test is obtained from
cpu2000/mgrid test.
It consists of calling of two functions: PSINV and RESID.
Instrumental control (gprof) shows that most part of time spends in RESID
function.
There is one strange thing for me. If I remove call of PSINV function test
(compiled by g77) became more slowly then it was before (with this call).
gfortran from gcc4.0 behave more predictable.
It looks like g77 from gcc 3.4.2 does interprocedure optimization for better
cache using which can't do gfortran from gcc4.0
You can reproduce my results with attached test.
Timing results:
With PSINV call
g77 sample.f -O2 -static
0m0.693s 0m0.685s 0m0.008s
0m0.694s 0m0.685s 0m0.009s
0m0.690s 0m0.683s 0m0.007s
With PSINV call
gfortran sample.f -O2 -static
0m1.293s 0m1.279s 0m0.015s
0m1.320s 0m1.306s 0m0.014s
0m1.303s 0m1.294s 0m0.008s
Without PSINV call:
g77 sample1.f -O2 -static -o z342s
time ./z342s
0m0.902s 0m0.893s 0m0.007s
0m0.930s 0m0.923s 0m0.008s
0m0.894s 0m0.889s 0m0.005s
Without PSINV call
gfortran sample1.f -O2 -static -o z40s
time ./z40s
0m0.758s 0m0.752s 0m0.006s
0m0.762s 0m0.758s 0m0.004s
0m0.759s 0m0.757s 0m0.004s
cat /proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 7
cpu MHz : 2400.858
cache size : 512 KB
--
Summary: about 2x perfomance regression in comparision with 3.4.2
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: denis dot nagorny at intel dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i586-suse-linux
GCC host triplet: i586-suse-linux
GCC target triplet: i586-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20945
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-17 9:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-20945-7607@http.gcc.gnu.org/bugzilla/>
2005-10-17 9:27 ` [Bug rtl-optimization/20945] [4.0/4.1 Regresson] about 2x perfomance regression in comparision with 3.4.2 steven at gcc dot gnu dot org
2005-04-11 13:17 [Bug fortran/20945] New: " denis dot nagorny at intel dot com
2005-07-10 19:55 ` [Bug rtl-optimization/20945] [4.0/4.1 Regresson] " pinskia at gcc dot gnu dot org
2005-09-29 4:08 ` pinskia at gcc dot gnu dot org
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).