2017-09-06 Richard Biener <rguenther@suse.de>
authorRichard Biener <rguenther@suse.de>
Wed, 6 Sep 2017 07:49:37 +0000 (07:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 6 Sep 2017 07:49:37 +0000 (07:49 +0000)
* gimple-ssa-strength-reduction.c
(find_candidates_dom_walker::before_doom_children): Use a
type and not a mode check.

From-SVN: r251753

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

index 0922d66..f6ba412 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-06  Richard Biener  <rguenther@suse.de>
+
+       * gimple-ssa-strength-reduction.c
+       (find_candidates_dom_walker::before_doom_children): Use a
+       type and not a mode check.
+
 2017-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        PR target/77308
index 6e3e93d..1c20825 100644 (file)
@@ -1742,8 +1742,7 @@ find_candidates_dom_walker::before_dom_children (basic_block bb)
        slsr_process_ref (gs);
 
       else if (is_gimple_assign (gs)
-              && SCALAR_INT_MODE_P
-                   (TYPE_MODE (TREE_TYPE (gimple_assign_lhs (gs)))))
+              && INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs))))
        {
          tree rhs1 = NULL_TREE, rhs2 = NULL_TREE;