From: Bin Cheng Date: Mon, 20 Nov 2017 14:15:30 +0000 (+0000) Subject: * tree-predcom.c (add_ref_to_chain): Remove check on distance. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90ef577378e880769532ef1f68d7d3da4c2661e7;p=gcc.git * tree-predcom.c (add_ref_to_chain): Remove check on distance. From-SVN: r254955 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11e515ef84d..900fa2e6583 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-20 Bin Cheng + + * tree-predcom.c (add_ref_to_chain): Remove check on distance. + 2017-11-20 Marc Glisse * vr-values.c (extract_range_from_binary_expr): Use a full range diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c index 747c1b82d37..499cedbf2c2 100644 --- a/gcc/tree-predcom.c +++ b/gcc/tree-predcom.c @@ -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);