From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id EEEAA385801A; Thu, 9 Dec 2021 12:48:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEEAA385801A 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-v7)] Simplify condition. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/loop-unswitch-improvement-v7 X-Git-Oldrev: c8e54b715eb8c5df698d505b549db916d3cdd5a5 X-Git-Newrev: 46dcbbbfd8369fee2917cfaeca5cd472fdba04ab Message-Id: <20211209124831.EEEAA385801A@sourceware.org> Date: Thu, 9 Dec 2021 12:48:31 +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: Thu, 09 Dec 2021 12:48:32 -0000 https://gcc.gnu.org/g:46dcbbbfd8369fee2917cfaeca5cd472fdba04ab commit 46dcbbbfd8369fee2917cfaeca5cd472fdba04ab Author: Martin Liska 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 3f533b51d83..c1a3f899d98 100644 --- a/gcc/tree-ssa-loop-unswitch.c +++ b/gcc/tree-ssa-loop-unswitch.c @@ -516,11 +516,7 @@ evaluate_control_stmt_using_entry_checks (gimple *stmt, const auto_edge_flag &ignored_edge_flag, hash_set *ignored_edges) { - tree lhs = NULL_TREE; - - // FIXME: remove? - if (predicate_path.is_empty ()) - return NULL_TREE; + tree lhs; gcond *condition = dyn_cast (stmt); gswitch *swtch = dyn_cast (stmt);