re PR target/32086 (10% to 20% Performance Regression Between 4.1.3 and 4.3)
authorPaolo Bonzini <bonzini@gnu.org>
Mon, 10 Dec 2007 08:34:37 +0000 (08:34 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Mon, 10 Dec 2007 08:34:37 +0000 (08:34 +0000)
2007-12-10  Paolo Bonzini  <bonzini@gnu.org>

PR target/32086
* config/i386/i386.c (override_options): Enable -fvect-cost-model.

2007-12-10  Paolo Bonzini  <bonzini@gnu.org>

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

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/vect.exp
gcc/testsuite/gcc.dg/vect/vect.exp
gcc/testsuite/gfortran.dg/vect/vect.exp

index ded5d4259e4bc10b1cb6e765dc3a918271c6f10a..efd2428bda8e0a90aeeb7782f79c38e0ae447b3b 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-10  Paolo Bonzini  <bonzini@gnu.org>
+
+       PR target/32086
+       * config/i386/i386.c (override_options): Enable -fvect-cost-model.
+
 2007-12-10 Uros Bizjak <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_function_regparm): Ditto. Use REGPARM_MAX
index ef5b7a93d89e0cf8aa33a0a1eac6d0a377183484..9d2c14438a9021df3e7e6eb24587f1ef632ef85f 100644 (file)
@@ -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
index cc4338ec4413fde227286419ce022cae55ed3641..331bdd85562db6a4f270a4d73f74d1f70173483d 100644 (file)
@@ -1,3 +1,10 @@
+2007-12-10  Paolo Bonzini  <bonzini@gnu.org>
+
+       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  <jakub@redhat.com>
 
        PR c++/34178
index 191a773002f886b10c2421b45c5f90cba13570a9..05964c64615ecffab6e58f51b0e729bb098fddbe 100644 (file)
@@ -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
index 40cb29f5a6f72364195b48cb4b26651a9fe99fe5..04fbc0178d91d6a083b875ef4b0b56100b8e8dec 100644 (file)
@@ -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.
index 74b064417b66b675c4f9537c2c32cb01274dbe4b..c48e76fb5c68ed245865cd0d8faeb269bb07f2aa 100644 (file)
@@ -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