From: Paolo Bonzini Date: Mon, 10 Dec 2007 08:34:37 +0000 (+0000) Subject: re PR target/32086 (10% to 20% Performance Regression Between 4.1.3 and 4.3) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32070c7bf2f849e7e03e14d68dc8566c967f4ea3;p=gcc.git re PR target/32086 (10% to 20% Performance Regression Between 4.1.3 and 4.3) 2007-12-10 Paolo Bonzini PR target/32086 * config/i386/i386.c (override_options): Enable -fvect-cost-model. 2007-12-10 Paolo Bonzini PR target/32086 * gcc.dg/vect/vect.exp (DEFAULT_VECTCFLAGS): Disable cost model. * g++.dg/vect/vect.exp (DEFAULT_VECTCFLAGS): Disable cost model. * gfortran.dg/vect/vect.exp (DEFAULT_VECTCFLAGS): Disable cost model. From-SVN: r130738 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ded5d4259e4..efd2428bda8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-12-10 Paolo Bonzini + + PR target/32086 + * config/i386/i386.c (override_options): Enable -fvect-cost-model. + 2007-12-10 Uros Bizjak * config/i386/i386.c (ix86_function_regparm): Ditto. Use REGPARM_MAX diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ef5b7a93d89..9d2c14438a9 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2933,6 +2933,7 @@ optimization_options (int level, int size ATTRIBUTE_UNUSED) flag_omit_frame_pointer = 2; flag_pcc_struct_return = 2; flag_asynchronous_unwind_tables = 2; + flag_vect_cost_model = 1; #ifdef SUBTARGET_OPTIMIZATION_OPTIONS SUBTARGET_OPTIMIZATION_OPTIONS; #endif diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc4338ec441..331bdd85562 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2007-12-10 Paolo Bonzini + + PR target/32086 + * gcc.dg/vect/vect.exp (DEFAULT_VECTCFLAGS): Disable cost model. + * g++.dg/vect/vect.exp (DEFAULT_VECTCFLAGS): Disable cost model. + * gfortran.dg/vect/vect.exp (DEFAULT_VECTCFLAGS): Disable cost model. + 2007-12-09 Jakub Jelinek PR c++/34178 diff --git a/gcc/testsuite/g++.dg/vect/vect.exp b/gcc/testsuite/g++.dg/vect/vect.exp index 191a773002f..05964c64615 100644 --- a/gcc/testsuite/g++.dg/vect/vect.exp +++ b/gcc/testsuite/g++.dg/vect/vect.exp @@ -39,7 +39,7 @@ set save-dg-do-what-default ${dg-do-what-default} set DEFAULT_VECTCFLAGS "" # These flags are used for all targets. -lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" \ +lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" "-fno-vect-cost-model" \ "-ftree-vectorizer-verbose=4" "-fdump-tree-vect-stats" # Skip these tests for targets that do not support generating vector diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index 40cb29f5a6f..04fbc0178d9 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -23,7 +23,7 @@ load_lib gcc-dg.exp set DEFAULT_VECTCFLAGS "" # These flags are used for all targets. -lappend DEFAULT_VECTCFLAGS "-ftree-vectorize" +lappend DEFAULT_VECTCFLAGS "-ftree-vectorize" "-fno-vect-cost-model" # If the target system supports vector instructions, the default action # for a test is 'run', otherwise it's 'compile'. Save current default. diff --git a/gcc/testsuite/gfortran.dg/vect/vect.exp b/gcc/testsuite/gfortran.dg/vect/vect.exp index 74b064417b6..c48e76fb5c6 100644 --- a/gcc/testsuite/gfortran.dg/vect/vect.exp +++ b/gcc/testsuite/gfortran.dg/vect/vect.exp @@ -24,7 +24,7 @@ load_lib target-supports.exp set DEFAULT_VECTCFLAGS "" # These flags are used for all targets. -lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" \ +lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" "-fno-vect-cost-model" \ "-ftree-vectorizer-verbose=4" "-fdump-tree-vect-stats" # If the target system supports vector instructions, the default action