From a02ab464e35947a129a601352467f1f2961612c8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 15 May 2009 17:12:00 +0000 Subject: i386.c (ix86_reorg): Call optimize_function_for_speed_p only once. 2009-05-15 H.J. Lu * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p only once. From-SVN: r147588 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa3be0d..2cd3e25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-05-15 H.J. Lu + + * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p + only once. + 2009-05-15 Jan Hubicka * doc/invoke.texi (max-early-inliner-iterations): New flag. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 743618c..cc0bb02 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -27359,12 +27359,13 @@ ix86_pad_returns (void) static void ix86_reorg (void) { - if (TARGET_PAD_RETURNS && optimize - && optimize_function_for_speed_p (cfun)) - ix86_pad_returns (); - if (TARGET_FOUR_JUMP_LIMIT && optimize - && optimize_function_for_speed_p (cfun)) - ix86_avoid_jump_misspredicts (); + if (optimize && optimize_function_for_speed_p (cfun)) + { + if (TARGET_PAD_RETURNS) + ix86_pad_returns (); + if (TARGET_FOUR_JUMP_LIMIT) + ix86_avoid_jump_misspredicts (); + } } /* Return nonzero when QImode register that must be represented via REX prefix -- cgit v1.1