2017-09-06 Richard Biener <rguenther@suse.de>
authorRichard Biener <rguenther@suse.de>
Wed, 6 Sep 2017 12:55:13 +0000 (12:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 6 Sep 2017 12:55:13 +0000 (12:55 +0000)
* gimple-ssa-strength-reduction.c
(find_candidates_dom_walker::before_dom_children): Also allow
pointer types.

From-SVN: r251791

gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c

index 97ed8d3334888261889ee9eaca033624f8bebc88..eba2c6812df14d26e648b2d863a4cb58af6fad75 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-06  Richard Biener  <rguenther@suse.de>
+
+       * gimple-ssa-strength-reduction.c
+       (find_candidates_dom_walker::before_dom_children): Also allow
+       pointer types.
+
 2017-09-06  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/82108
index 1c208253210fb92296838cf411d96be1f87acee3..b37ce35e36eaed2d203d86925f7bae70c355852b 100644 (file)
@@ -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;