public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Simplify condition.
Date: Tue,  7 Dec 2021 15:22:15 +0000 (GMT)	[thread overview]
Message-ID: <20211207152215.3FF0B3858412@sourceware.org> (raw)

https://gcc.gnu.org/g:f5e358b7407741e4ba4552386df6b9819211b2db

commit f5e358b7407741e4ba4552386df6b9819211b2db
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Dec 7 15:25:17 2021 +0100

    Simplify condition.

Diff:
---
 gcc/tree-ssa-loop-unswitch.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index fc5977670f8..c6b5cee3fb5 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -515,11 +515,7 @@ evaluate_control_stmt_using_entry_checks (gimple *stmt,
 					  const auto_edge_flag &ignored_edge_flag,
 					  hash_set<edge> *ignored_edges)
 {
-  tree lhs = NULL_TREE;
-
-  // FIXME: remove?
-  if (predicate_path.is_empty ())
-    return NULL_TREE;
+  tree lhs;
 
   gcond *condition = dyn_cast<gcond *> (stmt);
   gswitch *swtch = dyn_cast<gswitch *> (stmt);


                 reply	other threads:[~2021-12-07 15:22 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=20211207152215.3FF0B3858412@sourceware.org \
    --to=marxin@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).