From 7a2f720889eaee0e35a62ccb8e5685f1da944243 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 4 May 2011 19:07:03 +0200 Subject: [PATCH] i386.c (ix86_reorg): Run move_or_delete_vzeroupper first. * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first. From-SVN: r173383 --- gcc/ChangeLog | 16 ++++++++++------ gcc/config/i386/i386.c | 8 ++++---- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5412506d9db..ca856167adc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-04 Uros Bizjak + + * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first. + 2011-05-04 Eric Botcazou * stor-layout.c (variable_size): Do not issue errors. @@ -263,9 +267,9 @@ 2011-05-03 Stuart Henderson - From Mike Frysinger: - * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for - bf542/bf544/bf547/bf548/bf549. + From Mike Frysinger: + * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for + bf542/bf544/bf547/bf548/bf549. 2011-05-03 Uros Bizjak @@ -575,9 +579,9 @@ 2011-05-02 Stuart Henderson - PR target/47951 - * config/bfin/bfin.md (loop_end): Use matching constraints to ensure - inputs match the output. + PR target/47951 + * config/bfin/bfin.md (loop_end): Use matching constraints to ensure + inputs match the output. 2011-05-02 Andreas Schwab diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 79dd5da075a..786bc6de200 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -30444,6 +30444,10 @@ ix86_reorg (void) with old MDEP_REORGS that are not CFG based. Recompute it now. */ compute_bb_for_insn (); + /* Run the vzeroupper optimization if needed. */ + if (TARGET_VZEROUPPER) + move_or_delete_vzeroupper (); + if (optimize && optimize_function_for_speed_p (cfun)) { if (TARGET_PAD_SHORT_FUNCTION) @@ -30455,10 +30459,6 @@ ix86_reorg (void) ix86_avoid_jump_mispredicts (); #endif } - - /* Run the vzeroupper optimization if needed. */ - if (TARGET_VZEROUPPER) - move_or_delete_vzeroupper (); } /* Return nonzero when QImode register that must be represented via REX prefix -- 2.30.2