aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-05-29 12:00:00 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:09:20 -0300
commit5b98b21b909fa655e37de78afa805b2e584df166 (patch)
tree179284ce31f59de143ae90b5f9bf01d5379dff43 /gcc/cp/constexpr.c
parentfcc5f8079f1f70628cad45cb488f700d316cf8e5 (diff)
downloadgcc-5b98b21b909fa655e37de78afa805b2e584df166.zip
gcc-5b98b21b909fa655e37de78afa805b2e584df166.tar.gz
gcc-5b98b21b909fa655e37de78afa805b2e584df166.tar.bz2
tree-optimization/95272 - add SLP_TREE_REPRESENTATIVE
This adds SLP_TREE_REPRESENTATIVE - a representative stmt-info that is used by SLP analysis and code generation. This avoids the need for the hack in vect_slp_rearrange_stmts which previously avoided to re-arrange stmts that might not have been isomorphic because of operand swapping. It also plays nice with future directions of SLP and for the forseeable future is easier than replicating more and more info in the SLP node as long as non-SLP is in-tree. 2020-05-29 Richard Biener <rguenther@suse.de> PR tree-optimization/95272 * tree-vectorizer.h (_slp_tree::representative): Add. (SLP_TREE_REPRESENTATIVE): Likewise. * tree-vect-loop.c (vectorizable_reduction): Adjust SLP node gathering. (vectorizable_live_operation): Use the representative to attach the reduction info to. * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize SLP_TREE_REPRESENTATIVE. (vect_create_new_slp_node): Likewise. (slp_copy_subtree): Copy it. (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts. (vect_slp_analyze_node_operations_1): Pass the representative to vect_analyze_stmt. (vect_schedule_slp_instance): Pass the representative to vect_transform_stmt. * gcc.dg/vect/pr95272.c: New testcase.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions