From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id E18773858D1E; Sat, 1 Oct 2022 00:48:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E18773858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664585316; bh=B6QwNzVoomcazxlGhNw3dpphzmtFgOjsFjaPSTRU1ts=; h=From:To:Subject:Date:From; b=VfR8eCe8ZvX5QB6Eh//cEZ8k0leV/6tuiVMn5USCS1/WjXKftUsQVZswaZE04Nekl hmanenpPE7WUSkkjC4mCxSdvVXO3ghImkDOO9Ypd9sTiKKCZogNZMf5Wa6CGHRyyWM ksVGbbDpfnyA9ptXYU2DDoBqXXgJBL8uJPfm7fWM= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3007] Install correct patch version. X-Act-Checkin: gcc X-Git-Author: Jeff Law X-Git-Refname: refs/heads/master X-Git-Oldrev: c3cb74aee204a41f7049617d453f2c20c2b1febe X-Git-Newrev: aa360fbf68b11e54017e8fa5b1bdb87ce7c19188 Message-Id: <20221001004836.E18773858D1E@sourceware.org> Date: Sat, 1 Oct 2022 00:48:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:aa360fbf68b11e54017e8fa5b1bdb87ce7c19188 commit r13-3007-gaa360fbf68b11e54017e8fa5b1bdb87ce7c19188 Author: Jeff Law Date: Fri Sep 30 20:46:04 2022 -0400 Install correct patch version. gcc/ * tree-ssa-dom.cc (record_edge_info): Install correct version of patch. Diff: --- gcc/tree-ssa-dom.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/tree-ssa-dom.cc b/gcc/tree-ssa-dom.cc index 8d8312ca350..e6b8dace5e9 100644 --- a/gcc/tree-ssa-dom.cc +++ b/gcc/tree-ssa-dom.cc @@ -684,11 +684,6 @@ record_edge_info (basic_block bb) !gsi_end_p (gsi); gsi_next (&gsi)) { - /* If the other alternative is the same as the result, - then this is a degenerate and can be ignored. */ - if (dst == PHI_ARG_DEF (phi, !alternative)) - continue; - /* Now get the EDGE_INFO class so we can append it to our list. We want the successor edge where the destination is not the source of @@ -697,6 +692,11 @@ record_edge_info (basic_block bb) tree src = PHI_ARG_DEF (phi, alternative); tree dst = PHI_RESULT (phi); + /* If the other alternative is the same as the result, + then this is a degenerate and can be ignored. */ + if (dst == PHI_ARG_DEF (phi, !alternative)) + continue; + if (EDGE_SUCC (bb, 0)->dest != EDGE_PRED (bb, !alternative)->src) edge_info = (class edge_info *)EDGE_SUCC (bb, 0)->aux;