re PR tree-optimization/80374 (ICE in fold_convert_loc, at fold-const.c:2384)
authorRichard Biener <rguenther@suse.de>
Tue, 11 Apr 2017 13:44:24 +0000 (13:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 11 Apr 2017 13:44:24 +0000 (13:44 +0000)
2017-04-11  Richard Biener  <rguenther@suse.de>

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

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 71894ec9b4cf51be56cde56694d51c4110410863..272f60343377e439f95467ebedfe3fed8660e975 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-11  Richard Biener  <rguenther@suse.de>
+
+       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  <mliska@suse.cz>
 
        PR sanitizer/70878
index d9e5942206b13ee1a124fcea6c8117bce0f93237..22ac57e1f75a520c282a30af3ee89472c3c01b76 100644 (file)
@@ -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);