aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2011-08-06 14:48:13 +0200
committerUros Bizjak <uros@gcc.gnu.org>2011-08-06 14:48:13 +0200
commitf68c9aa8feb0d6c901205569c341c67bf44a7af2 (patch)
tree0eafb2f87ab8928331d93b1e2de464cf5138df8b
parent2c7f9cc0766065cd7d1e5788a18b43b5c0d8b023 (diff)
downloadgcc-f68c9aa8feb0d6c901205569c341c67bf44a7af2.zip
gcc-f68c9aa8feb0d6c901205569c341c67bf44a7af2.tar.gz
gcc-f68c9aa8feb0d6c901205569c341c67bf44a7af2.tar.bz2
i386.c (ix86_compute_frame_layout): Simplify frame->save_regs_using_mov calculation.
* config/i386/i386.c (ix86_compute_frame_layout): Simplify frame->save_regs_using_mov calculation. From-SVN: r177508
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4757cf1..2b32bbe 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
* config/i386/sse.md (castmode): New mode attribute.
(avx_<castmode><avxsizesuffix>_<castmode>): Rename from
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index f1d6430..19dd243 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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;