[Bug tree-optimization/80170] SLP vectorization creates aligned access

2017-05-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80170

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||6.3.1
 Resolution|--- |FIXED

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Wed May 10 07:44:41 2017
New Revision: 247826

URL: https://gcc.gnu.org/viewcvs?rev=247826=gcc=rev
Log:
2017-05-10  Richard Biener  

Backport from mainline
2017-03-17  Richard Biener  

PR middle-end/80075
* tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
Properly verify the LHS before the RHS possibly claims to be
handled.
(stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
do not throw.

* g++.dg/torture/pr80075.C: New testcase.

2017-03-21  Brad Spengler 

PR plugin/80094
* plugin.c (htab_hash_plugin): New function.
(add_new_plugin): Use it and adjust.
(parse_plugin_arg_opt): Adjust.
(init_one_plugin): Likewise.

2017-03-20  Richard Biener  

PR tree-optimization/80113
* graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
allocate extra SSA name for PHI def.
(add_close_phis_to_outer_loops): Likewise.
(add_close_phis_to_merge_points): Likewise.
(copy_loop_close_phi_args): Likewise.
(copy_cond_phi_nodes): Likewise.

2017-03-21  Richard Biener  

PR tree-optimization/80122
* tree-inline.c (copy_bb): Do not expans va-arg packs or
va_arg_pack_len when the inlined call stmt requires pack
expansion itself.
* tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.

* gcc.dg/torture/pr80122.c: New testcase.

2017-03-24  Richard Biener  

PR tree-optimization/80167
* graphite-isl-ast-to-gimple.c
(translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
properly.
(translate_isl_ast_to_gimple::get_rename): Likewise.

* gcc.dg/graphite/pr80167.c: New testcase.

2017-03-27  Richard Biener  

PR tree-optimization/80170
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
sure DR/SCEV didnt fold in constants we do not see when looking
at the reference base alignment.

2017-03-27  Richard Biener  

PR middle-end/80171
* gimple-fold.c (fold_ctor_reference): Properly guard against
NULL return value from canonicalize_constructor_val.

* g++.dg/torture/pr80171.C: New testcase.

Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr80075.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr80171.C
branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr80167.c
branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr80122.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/gimple-fold.c
branches/gcc-6-branch/gcc/graphite-isl-ast-to-gimple.c
branches/gcc-6-branch/gcc/plugin.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-eh.c
branches/gcc-6-branch/gcc/tree-inline.c
branches/gcc-6-branch/gcc/tree-inline.h
branches/gcc-6-branch/gcc/tree-vect-data-refs.c

--- Comment #5 from Richard Biener  ---
Fixed for GCC 6.4.

[Bug tree-optimization/80170] SLP vectorization creates aligned access

2017-05-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80170

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||6.3.1
 Resolution|--- |FIXED

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Wed May 10 07:44:41 2017
New Revision: 247826

URL: https://gcc.gnu.org/viewcvs?rev=247826=gcc=rev
Log:
2017-05-10  Richard Biener  

Backport from mainline
2017-03-17  Richard Biener  

PR middle-end/80075
* tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
Properly verify the LHS before the RHS possibly claims to be
handled.
(stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
do not throw.

* g++.dg/torture/pr80075.C: New testcase.

2017-03-21  Brad Spengler 

PR plugin/80094
* plugin.c (htab_hash_plugin): New function.
(add_new_plugin): Use it and adjust.
(parse_plugin_arg_opt): Adjust.
(init_one_plugin): Likewise.

2017-03-20  Richard Biener  

PR tree-optimization/80113
* graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
allocate extra SSA name for PHI def.
(add_close_phis_to_outer_loops): Likewise.
(add_close_phis_to_merge_points): Likewise.
(copy_loop_close_phi_args): Likewise.
(copy_cond_phi_nodes): Likewise.

2017-03-21  Richard Biener  

PR tree-optimization/80122
* tree-inline.c (copy_bb): Do not expans va-arg packs or
va_arg_pack_len when the inlined call stmt requires pack
expansion itself.
* tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.

* gcc.dg/torture/pr80122.c: New testcase.

2017-03-24  Richard Biener  

PR tree-optimization/80167
* graphite-isl-ast-to-gimple.c
(translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
properly.
(translate_isl_ast_to_gimple::get_rename): Likewise.

* gcc.dg/graphite/pr80167.c: New testcase.

2017-03-27  Richard Biener  

PR tree-optimization/80170
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
sure DR/SCEV didnt fold in constants we do not see when looking
at the reference base alignment.

2017-03-27  Richard Biener  

PR middle-end/80171
* gimple-fold.c (fold_ctor_reference): Properly guard against
NULL return value from canonicalize_constructor_val.

* g++.dg/torture/pr80171.C: New testcase.

Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr80075.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr80171.C
branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr80167.c
branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr80122.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/gimple-fold.c
branches/gcc-6-branch/gcc/graphite-isl-ast-to-gimple.c
branches/gcc-6-branch/gcc/plugin.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-eh.c
branches/gcc-6-branch/gcc/tree-inline.c
branches/gcc-6-branch/gcc/tree-inline.h
branches/gcc-6-branch/gcc/tree-vect-data-refs.c

--- Comment #5 from Richard Biener  ---
Fixed for GCC 6.4.

[Bug tree-optimization/80170] SLP vectorization creates aligned access

2017-03-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80170

Richard Biener  changed:

   What|Removed |Added

  Known to work||7.0.1

--- Comment #3 from Richard Biener  ---
Fixed on trunk (sofar).

[Bug tree-optimization/80170] SLP vectorization creates aligned access

2017-03-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80170

--- Comment #2 from Richard Biener  ---
Author: rguenth
Date: Mon Mar 27 08:07:49 2017
New Revision: 246491

URL: https://gcc.gnu.org/viewcvs?rev=246491=gcc=rev
Log:
2017-03-27  Richard Biener  

PR tree-optimization/80170
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
sure DR/SCEV didnt fold in constants we do not see when looking
at the reference base alignment.

* gcc.dg/pr80170.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/pr80170.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-data-refs.c

[Bug tree-optimization/80170] SLP vectorization creates aligned access

2017-03-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80170

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2017-03-24
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Mine.