diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-09-06 12:55:13 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-09-06 12:55:13 +0000 |
commit | 61a4b85cc159f1fd4e4b19ff39f672177995570c (patch) | |
tree | abc16449a7c44f470260590152dd36a1f813db43 /gcc/gimple-ssa-strength-reduction.c | |
parent | 13a1bbd30deda2c06f767107baeed85920c07207 (diff) | |
download | gcc-61a4b85cc159f1fd4e4b19ff39f672177995570c.tar.gz |
2017-09-06 Richard Biener <rguenther@suse.de>
* gimple-ssa-strength-reduction.c
(find_candidates_dom_walker::before_dom_children): Also allow
pointer types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251791 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-ssa-strength-reduction.c')
-rw-r--r-- | gcc/gimple-ssa-strength-reduction.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |