This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43884] [4.4/4.5 Regression] Performance degradation for simple fibonacci numbers calculation
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2010 12:13:24 -0000
- Subject: [Bug c++/43884] [4.4/4.5 Regression] Performance degradation for simple fibonacci numbers calculation
- References: <bug-43884-6649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from steven at gcc dot gnu dot org 2010-04-25 12:13 -------
Confirmed on x86_64-linux by comparing gcc 4.3.3 vs. gcc 4.6.0 (r158482). The
average of 10 runs on each is 5.1s with gcc 4.3.3 vs. 5.7s for gcc 4.4.2, gcc
4.5.0 and gcc 4.6.0.
One interesting difference is that GCC 4.5 does not inline fib. But that
shouldn't have a big impact on performance. The generated code for fib is
completely different (maybe an IRA thing??), so it's hard to tell where the
slow-down comes from.
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-04-25 12:13:24
date| |
Summary|Performance degradation of |[4.4/4.5 Regression]
|the simple example |Performance degradation for
|(fibonacci) 4.3.3->4.5.0 |simple fibonacci numbers
| |calculation
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43884