i386.c (ix86_compute_frame_layout): Simplify frame->save_regs_using_mov calculation.
authorUros Bizjak <ubizjak@gmail.com>
Sat, 6 Aug 2011 12:48:13 +0000 (14:48 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 6 Aug 2011 12:48:13 +0000 (14:48 +0200)
* config/i386/i386.c (ix86_compute_frame_layout): Simplify
frame->save_regs_using_mov calculation.

From-SVN: r177508

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

index 4757cf14fdce8f45354217ad7e04b16599f02e0f..2b32bbefe90036d71193ee7249c77f4a9435870e 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (ix86_compute_frame_layout): Simplify
+       frame->save_regs_using_mov calculation.
+
 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
index f1d6430f079eba45ecc3dcb15bfa92de9fa2fd78..19dd24330c50287849ce0120eba92c3a3650b7a8 100644 (file)
@@ -8742,16 +8742,12 @@ ix86_compute_frame_layout (struct ix86_frame *frame)
         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;