tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
commit8a9ecffd3f68eca6ff3031afb7edc79988773896
authorMichael Matz <matz@gcc.gnu.org>
Mon, 10 May 2010 14:31:37 +0000 (10 14:31 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Mon, 10 May 2010 14:31:37 +0000 (10 14:31 +0000)
tree23003a727a703aa73b4c09b5ba60eb77c600ebdf
parent46044dd988812b122ba11b1d517f936eaeec4a52
tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.

* tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
(can_reassociate_p): Use FLOAT_TYPE_P.
* tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
(vect_force_simple_reduction): ... this.
* tree-parloops.c (gather_scalar_reductions): Use
vect_force_simple_reduction.
* tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
vect_is_simple_reduction, add modify argument, if true rewrite
"a-b" into "a+(-b)".
(vect_is_simple_reduction, vect_force_simple_reduction): New
functions.
(vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.

testsuite/
* gcc.dg/vect/fast-math-vect-reduc-8.c: New test.

From-SVN: r159226
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c [new file with mode: 0644]
gcc/tree-parloops.c
gcc/tree-ssa-reassoc.c
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h