-
- Downloads
re PR middle-end/28436 (accessing an element via a "pointer" on a vector does...
re PR middle-end/28436 (accessing an element via a "pointer" on a vector does not cause vec_extract to be used) 2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/28436 * tree.h (DECL_COMPLEX_GIMPLE_REG_P): Rename to ... (DECL_GIMPLE_REG_P): This. * fold-const.c (fold_indirect_ref_1): Fold *(foo *)&vectorfoo into using BIT_FIELD_REF. * omp-low.c (omp_copy_decl_2): Use the renamed DECL_GIMPLE_REG_P. * tree-gimple.c (is_gimple_reg): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. * expr.c (get_inner_reference): Set the mode for BIT_FIELD_REF with vector types. * tree-flow-inline.h (var_can_have_subvars): Use the renamed DECL_GIMPLE_REG_P. * gimplify.c (internal_get_tmp_var): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. (gimplify_bind_expr): Likewise. (gimplify_function_tree): Likewise. * expmed.c: Include target.h. (extract_bit_field): For vector mode, try find a better mode first. If that fails use gen_lowpart (for vectors only). * tree-dfa.c (make_rename_temp): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. * tree-ssa-pre.c (create_expressions_by_pieces): Likewise. (insert_into_preds_of_block): Likewise. (insert_fake_stores): Create gimple register store_tmps for vector types. * tree-sra.c (sra_elt): New field, is_vector_lhs. (sra_walk_expr <case BIT_FIELD_REF>): For vector types that are the left hand side, set the element's is_vector_lhs to true. (instantiate_element): For vector types which were on the left hand size, set DECL_GIMPLE_REG_P to false. * tree-nested.c (create_tmp_var_for): Use the renamed DECL_GIMPLE_REG_P. * tree-inline.c (declare_return_variable): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. (copy_decl_to_var): Use the renamed DECL_GIMPLE_REG_P. (copy_result_decl_to_var): Likewise. * tree-vect-transform.c (vect_get_new_vect_var): For vector types, create a gimple register variable. (vect_permute_store_chain): Set DECL_GIMPLE_REG_P to true for the vect_inter_* temp variables. * Makefile.in (expmed.o): Update dependencies. 2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/28436 * gcc.c-torture/compile/vector-1.c: New test. * gcc.c-torture/compile/vector-2.c: New test. * gcc.c-torture/compile/vector-3.c: New test. From-SVN: r119801
Showing
- gcc/ChangeLog 43 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 1 addition, 1 deletiongcc/Makefile.in
- gcc/expmed.c 25 additions, 0 deletionsgcc/expmed.c
- gcc/expr.c 7 additions, 0 deletionsgcc/expr.c
- gcc/fold-const.c 8 additions, 0 deletionsgcc/fold-const.c
- gcc/gimplify.c 13 additions, 9 deletionsgcc/gimplify.c
- gcc/omp-low.c 1 addition, 1 deletiongcc/omp-low.c
- gcc/testsuite/ChangeLog 7 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.c-torture/compile/vector-1.c 11 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/vector-1.c
- gcc/testsuite/gcc.c-torture/compile/vector-2.c 12 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/vector-2.c
- gcc/testsuite/gcc.c-torture/compile/vector-3.c 7 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/vector-3.c
- gcc/tree-dfa.c 3 additions, 2 deletionsgcc/tree-dfa.c
- gcc/tree-flow-inline.h 1 addition, 1 deletiongcc/tree-flow-inline.h
- gcc/tree-gimple.c 3 additions, 2 deletionsgcc/tree-gimple.c
- gcc/tree-inline.c 10 additions, 8 deletionsgcc/tree-inline.c
- gcc/tree-nested.c 1 addition, 1 deletiongcc/tree-nested.c
- gcc/tree-sra.c 18 additions, 0 deletionsgcc/tree-sra.c
- gcc/tree-ssa-pre.c 9 additions, 4 deletionsgcc/tree-ssa-pre.c
- gcc/tree-vect-transform.c 6 additions, 0 deletionsgcc/tree-vect-transform.c
- gcc/tree.h 7 additions, 6 deletionsgcc/tree.h
Loading
Please register or sign in to comment