public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-3761] path solver: Remove useless code.
Date: Tue, 21 Sep 2021 16:56:38 +0000 (GMT)	[thread overview]
Message-ID: <20210921165638.BDD31385841B@sourceware.org> (raw)

https://gcc.gnu.org/g:062c8727df2d9972b73f10445a7585e0129bd63e

commit r12-3761-g062c8727df2d9972b73f10445a7585e0129bd63e
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Tue Sep 21 09:17:57 2021 +0200

    path solver: Remove useless code.
    
    gcc/ChangeLog:
    
            * gimple-range-path.cc (path_range_query::range_defined_in_block):
            Remove useless code.

Diff:
---
 gcc/gimple-range-path.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gcc/gimple-range-path.cc b/gcc/gimple-range-path.cc
index b3040c9bc00..b86a76fa74b 100644
--- a/gcc/gimple-range-path.cc
+++ b/gcc/gimple-range-path.cc
@@ -246,10 +246,6 @@ path_range_query::range_defined_in_block (irange &r, tree name, basic_block bb)
       fprintf (dump_file, "\n");
     }
 
-  // We may have an artificial statement not in the IL.
-  if (!bb && r.varying_p ())
-    return false;
-
   return true;
 }


                 reply	other threads:[~2021-09-21 16:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210921165638.BDD31385841B@sourceware.org \
    --to=aldyh@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).