Commit 32070c7b by Paolo Bonzini Committed by Paolo Bonzini

re PR target/32086 (10% to 20% Performance Regression Between 4.1.3 and 4.3)

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
parent ec382b8c
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> 2007-12-10 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_function_regparm): Ditto. Use REGPARM_MAX * config/i386/i386.c (ix86_function_regparm): Ditto. Use REGPARM_MAX
...@@ -2933,6 +2933,7 @@ optimization_options (int level, int size ATTRIBUTE_UNUSED) ...@@ -2933,6 +2933,7 @@ optimization_options (int level, int size ATTRIBUTE_UNUSED)
flag_omit_frame_pointer = 2; flag_omit_frame_pointer = 2;
flag_pcc_struct_return = 2; flag_pcc_struct_return = 2;
flag_asynchronous_unwind_tables = 2; flag_asynchronous_unwind_tables = 2;
flag_vect_cost_model = 1;
#ifdef SUBTARGET_OPTIMIZATION_OPTIONS #ifdef SUBTARGET_OPTIMIZATION_OPTIONS
SUBTARGET_OPTIMIZATION_OPTIONS; SUBTARGET_OPTIMIZATION_OPTIONS;
#endif #endif
......
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> 2007-12-09 Jakub Jelinek <jakub@redhat.com>
PR c++/34178 PR c++/34178
...@@ -39,7 +39,7 @@ set save-dg-do-what-default ${dg-do-what-default} ...@@ -39,7 +39,7 @@ set save-dg-do-what-default ${dg-do-what-default}
set DEFAULT_VECTCFLAGS "" set DEFAULT_VECTCFLAGS ""
# These flags are used for all targets. # 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" "-ftree-vectorizer-verbose=4" "-fdump-tree-vect-stats"
# Skip these tests for targets that do not support generating vector # Skip these tests for targets that do not support generating vector
......
...@@ -23,7 +23,7 @@ load_lib gcc-dg.exp ...@@ -23,7 +23,7 @@ load_lib gcc-dg.exp
set DEFAULT_VECTCFLAGS "" set DEFAULT_VECTCFLAGS ""
# These flags are used for all targets. # 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 # If the target system supports vector instructions, the default action
# for a test is 'run', otherwise it's 'compile'. Save current default. # for a test is 'run', otherwise it's 'compile'. Save current default.
......
...@@ -24,7 +24,7 @@ load_lib target-supports.exp ...@@ -24,7 +24,7 @@ load_lib target-supports.exp
set DEFAULT_VECTCFLAGS "" set DEFAULT_VECTCFLAGS ""
# These flags are used for all targets. # 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" "-ftree-vectorizer-verbose=4" "-fdump-tree-vect-stats"
# If the target system supports vector instructions, the default action # If the target system supports vector instructions, the default action
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment