From: Richard Biener Date: Wed, 6 Sep 2017 12:55:13 +0000 (+0000) Subject: 2017-09-06 Richard Biener X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ffbb0160d3c895133ef3104ccd5e25d477e48ba;p=gcc.git 2017-09-06 Richard Biener * gimple-ssa-strength-reduction.c (find_candidates_dom_walker::before_dom_children): Also allow pointer types. From-SVN: r251791 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97ed8d33348..eba2c6812df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-09-06 Richard Biener + + * gimple-ssa-strength-reduction.c + (find_candidates_dom_walker::before_dom_children): Also allow + pointer types. + 2017-09-06 Richard Biener PR tree-optimization/82108 diff --git a/gcc/gimple-ssa-strength-reduction.c b/gcc/gimple-ssa-strength-reduction.c index 1c208253210..b37ce35e36e 100644 --- a/gcc/gimple-ssa-strength-reduction.c +++ b/gcc/gimple-ssa-strength-reduction.c @@ -1742,7 +1742,8 @@ find_candidates_dom_walker::before_dom_children (basic_block bb) slsr_process_ref (gs); else if (is_gimple_assign (gs) - && INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs)))) + && (INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs))) + || POINTER_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs))))) { tree rhs1 = NULL_TREE, rhs2 = NULL_TREE;