public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Fix me.
@ 2021-12-07 15:21 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2021-12-07 15:21 UTC (permalink / raw)
  To: gcc-cvs

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

commit f8e256990f4f575fc94d37c955e77b34797331f1
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Dec 1 15:03:19 2021 +0100

    Fix me.

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

diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index f7660a1f9ac..6ffa0c31eeb 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -385,7 +385,10 @@ find_range_for_lhs (predicate_vector &predicate_path, tree lhs,
       bool true_edge = predicate_path[i].second;
 
       if (operand_equal_p (predicate->lhs, lhs, 0))
-	range = true_edge ? predicate->true_range : predicate->false_range;
+	{
+	  range = true_edge ? predicate->true_range : predicate->false_range;
+	  return;
+	}
     }
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Fix me.
@ 2021-12-06 14:34 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2021-12-06 14:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3f948a1b70fce3862791b9136e8573d8b8a45f78

commit 3f948a1b70fce3862791b9136e8573d8b8a45f78
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Dec 1 15:03:19 2021 +0100

    Fix me.

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

diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index f7660a1f9ac..6ffa0c31eeb 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -385,7 +385,10 @@ find_range_for_lhs (predicate_vector &predicate_path, tree lhs,
       bool true_edge = predicate_path[i].second;
 
       if (operand_equal_p (predicate->lhs, lhs, 0))
-	range = true_edge ? predicate->true_range : predicate->false_range;
+	{
+	  range = true_edge ? predicate->true_range : predicate->false_range;
+	  return;
+	}
     }
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-07 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 15:21 [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Fix me Martin Liska
  -- strict thread matches above, loose matches on Subject: below --
2021-12-06 14:34 Martin Liska

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).