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 0922d6676a35c089064dc14d4b35f2f7f6e3fd14..f6ba412aeb0f3779670e0ee825da210d9faa4eda 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 6e3e93db053ca31f0ee794ca63b067ae9458d612..1c208253210fb92296838cf411d96be1f87acee3 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;