This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81427] Bad optimization for fibonacci function on PowerPC
- From: "segher at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jul 2017 11:04:15 +0000
- Subject: [Bug tree-optimization/81427] Bad optimization for fibonacci function on PowerPC
- Auto-submitted: auto-generated
- References: <bug-81427-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81427
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at gcc dot gnu.org
--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
The function is longer, yes, but that is because it is inline into itself
eight times (or doubled once again?)
This is quite aggressive, yes. But is it actually slower? Inlining
almost always makes code bigger, but also faster.
You can play with the various inlining --param's to see what would be
a better tradeoff here.