OSDN Git Service

2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 May 2009 17:12:00 +0000 (17:12 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 May 2009 17:12:00 +0000 (17:12 +0000)
* config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
only once.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147588 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index fa3be0d..2cd3e25 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
+       only once.
+
 2009-05-15  Jan Hubicka  <jh@suse.cz>
 
        * doc/invoke.texi (max-early-inliner-iterations): New flag.
index 743618c..cc0bb02 100644 (file)
@@ -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