From: Richard Biener Date: Tue, 11 Apr 2017 13:44:24 +0000 (+0000) Subject: re PR tree-optimization/80374 (ICE in fold_convert_loc, at fold-const.c:2384) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=276ebde7b1bfd430f747e21a2c8345e35fc4e622;p=gcc.git re PR tree-optimization/80374 (ICE in fold_convert_loc, at fold-const.c:2384) 2017-04-11 Richard Biener PR tree-optimization/80374 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use build_zero_cst, remove fold_convertible_p check again. From-SVN: r246840 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71894ec9b4c..272f6034337 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-04-11 Richard Biener + + PR tree-optimization/80374 + * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use + build_zero_cst, remove fold_convertible_p check again. + 2017-04-11 Martin Liska PR sanitizer/70878 diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index d9e5942206b..22ac57e1f75 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -701,13 +701,12 @@ derive_equivalences_from_bit_ior (tree name, const_and_copies *const_and_copies, int recursion_limit) { - if (recursion_limit == 0 - || !fold_convertible_p (TREE_TYPE (name), integer_zero_node)) + if (recursion_limit == 0) return; if (TREE_CODE (name) == SSA_NAME) { - tree value = fold_convert (TREE_TYPE (name), integer_zero_node); + tree value = build_zero_cst (TREE_TYPE (name)); /* This records the equivalence for the toplevel object. */ record_equality (name, value, const_and_copies);