* tree-predcom.c (add_ref_to_chain): Remove check on distance.
authorBin Cheng <bin.cheng@arm.com>
Mon, 20 Nov 2017 14:15:30 +0000 (14:15 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 20 Nov 2017 14:15:30 +0000 (14:15 +0000)
From-SVN: r254955

gcc/ChangeLog
gcc/tree-predcom.c

index 11e515ef84df907cd37eaf2dfaf580a9979a7e83..900fa2e658355c03ce91754e487f227431a38494 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-20  Bin Cheng  <bin.cheng@arm.com>
+
+       * tree-predcom.c (add_ref_to_chain): Remove check on distance.
+
 2017-11-20  Marc Glisse  <marc.glisse@inria.fr>
 
        * vr-values.c (extract_range_from_binary_expr): Use a full range
index 747c1b82d3724c284f9dd68328acbc0ec7938db6..499cedbf2c24a18447c9e3ec9af5863eecd2f361 100644 (file)
@@ -1063,11 +1063,6 @@ add_ref_to_chain (chain_p chain, dref ref)
 
   gcc_assert (wi::les_p (root->offset, ref->offset));
   widest_int dist = ref->offset - root->offset;
-  if (wi::leu_p (MAX_DISTANCE, dist))
-    {
-      free (ref);
-      return;
-    }
   gcc_assert (wi::fits_uhwi_p (dist));
 
   chain->refs.safe_push (ref);