[Bug tree-optimization/81427] Bad optimization for fibonacci function on PowerPC

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 25 11:04:00 GMT 2017


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.


More information about the Gcc-bugs mailing list