[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Fix me.
Martin Liska
marxin@gcc.gnu.org
Wed Dec 8 10:17:10 GMT 2021
https://gcc.gnu.org/g:cae0db72e5ca1975607c5b17713f66a7625e2608
commit cae0db72e5ca1975607c5b17713f66a7625e2608
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 d15825908c2..d6412bd49aa 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;
+ }
}
}
More information about the Gcc-cvs
mailing list