From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 505E33858434; Tue, 7 Dec 2021 15:22:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 505E33858434 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Fix thinko. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/loop-unswitch-improvement-v6 X-Git-Oldrev: f5e358b7407741e4ba4552386df6b9819211b2db X-Git-Newrev: 556e9ba57adb6bb31b537619bfc998881df96de5 Message-Id: <20211207152220.505E33858434@sourceware.org> Date: Tue, 7 Dec 2021 15:22:20 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2021 15:22:20 -0000 https://gcc.gnu.org/g:556e9ba57adb6bb31b537619bfc998881df96de5 commit 556e9ba57adb6bb31b537619bfc998881df96de5 Author: Martin Liska Date: Tue Dec 7 16:13:05 2021 +0100 Fix thinko. Diff: --- gcc/tree-ssa-loop-unswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c index c6b5cee3fb5..9e6aa49a6f2 100644 --- a/gcc/tree-ssa-loop-unswitch.c +++ b/gcc/tree-ssa-loop-unswitch.c @@ -553,7 +553,7 @@ evaluate_control_stmt_using_entry_checks (gimple *stmt, int_range_max path_range; if (find_range_for_lhs (predicate_path, lhs, path_range) - && path_range.undefined_p () + && !path_range.undefined_p () && fold_range (r, stmt, path_range) && r.singleton_p ()) return r.zero_p () ? boolean_false_node : boolean_true_node;