From: Richard Biener Date: Wed, 6 Sep 2017 07:49:37 +0000 (+0000) Subject: 2017-09-06 Richard Biener X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58565a2ec16925841c2a97aaa1ab8eff63bc6f3e;p=gcc.git 2017-09-06 Richard Biener * gimple-ssa-strength-reduction.c (find_candidates_dom_walker::before_doom_children): Use a type and not a mode check. From-SVN: r251753 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0922d6676a3..f6ba412aeb0 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_doom_children): Use a + type and not a mode check. + 2017-09-06 Bernd Edlinger PR target/77308 diff --git a/gcc/gimple-ssa-strength-reduction.c b/gcc/gimple-ssa-strength-reduction.c index 6e3e93db053..1c208253210 100644 --- a/gcc/gimple-ssa-strength-reduction.c +++ b/gcc/gimple-ssa-strength-reduction.c @@ -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;