From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 01C213840C25; Sun, 14 Jun 2020 00:47:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01C213840C25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592095629; bh=o/xtqsrazIEgnouND71GGYoSUcFLHKaZWXmsQrOukis=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AdIuOo9fjIWIrZEcPYyni66KzfwD0FXUQuMPanLpyY1tJq2wq0bSmmvbRpf0HWF2N 9cVl9Z2gFe+OR9JmcNNRCS3LTxU23fM5pja8OYmzzZa0KEp7hS+6kZSySF5XXwBjrW W5kt9lOYknWjAOeGJK5pM27P10wHGqv5mm9asLLk= From: "amker at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95638] [10/11 Regression] Legit-looking code doesn't work with -O2 Date: Sun, 14 Jun 2020 00:47:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amker at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2020 00:47:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95638 --- Comment #6 from bin cheng --- We call graphds_scc twice to break alias dependence, with alias dependence edges skipped in the second call. The code (both before and after r10-7184-ge4e9a59105a81cdd6c1328b0a5ed9fe4cc82840e) tries to rectify post o= rder information after the second call, however it never gets it right. Actuall= y I don't think it can be easily rectified (if possible). Will test another patch which records/restores post order information for t= he second call.=