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-v3)] Fix folding.
Date: Wed, 24 Nov 2021 14:34:22 +0000 (GMT)	[thread overview]
Message-ID: <20211124143422.D8A023858433@sourceware.org> (raw)

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

commit ef821ec43baa1ac958e48a6bafe65d1618da150d
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Nov 24 15:31:57 2021 +0100

    Fix folding.

Diff:
---
 gcc/tree-ssa-loop-unswitch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 9db758b5199..1d5bcfc3237 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -647,12 +647,12 @@ tree_unswitch_single_loop (class loop *loop, int num,
       free_original_copy_tables ();
 
       /* Invoke itself on modified loops.  */
-      predicate_path.safe_push (std::make_pair (predicate, true));
+      predicate_path.safe_push (std::make_pair (predicate, false));
       changed |= simplify_loop_version (nloop, predicate_path);
       tree_unswitch_single_loop (nloop, num + 1, predicate_path);
       predicate_path.pop ();
 
-      predicate_path.safe_push (std::make_pair (predicate, false));
+      predicate_path.safe_push (std::make_pair (predicate, true));
       changed |= simplify_loop_version (loop, predicate_path);
       tree_unswitch_single_loop (loop, num + 1, predicate_path);
       predicate_path.pop ();


             reply	other threads:[~2021-11-24 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 14:34 Martin Liska [this message]
2021-11-29 11:13 Martin Liska

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=20211124143422.D8A023858433@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).