diff mbox

[i386] : Simplify frame->save_regs_using_mov calculation.

Message ID CAFULd4YP5N=p849BSzeEOxHjU8XcNKGEcjt9ASgrb3aacKW9HQ@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Aug. 6, 2011, 12:49 p.m. UTC
Hello!

No functional changes.

2011-08-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_compute_frame_layout): Simplify
	frame->save_regs_using_mov calculation.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

Uros.
diff mbox

Patch

Index: i386.c
===================================================================
--- i386.c	(revision 177507)
+++ i386.c	(working copy)
@@ -8742,16 +8742,12 @@  ix86_compute_frame_layout (struct ix86_frame *fram
         cfun->machine->use_fast_prologue_epilogue
 	   = !expensive_function_p (count);
     }
-  if (TARGET_PROLOGUE_USING_MOVE
-      && cfun->machine->use_fast_prologue_epilogue)
-    frame->save_regs_using_mov = true;
-  else
-    frame->save_regs_using_mov = false;

-  /* If static stack checking is enabled and done with probes, the registers
-     need to be saved before allocating the frame.  */
-  if (flag_stack_check == STATIC_BUILTIN_STACK_CHECK)
-    frame->save_regs_using_mov = false;
+  frame->save_regs_using_mov
+    = (TARGET_PROLOGUE_USING_MOVE && cfun->machine->use_fast_prologue_epilogue
+       /* If static stack checking is enabled and done with probes,
+	  the registers need to be saved before allocating the frame.  */
+       && flag_stack_check != STATIC_BUILTIN_STACK_CHECK);

   /* Skip return address.  */
   offset = UNITS_PER_WORD;