From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD70D385DC1E; Thu, 16 Apr 2020 07:37:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD70D385DC1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587022667; bh=hctl9/XIn8+SPEk76/yPsyOy/WHAhJCGjGDFn8i4Rak=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pe8P/cr6AZ/5lroN/LIUSPeuQEh64zdZ3OG4kx9wLqg/NSPljdEAj1uOhHVn/Me8Q bbSU/OxQ7Lp7OlvnyIk2GA6PY54XnlxYybtMFrdrzzSKD2YBotjNwMcD7pKtS5Pxco A8xe6XULUJWQ3mhNVDu3oHvk6QmjElA4HlbcwjLc= From: "krebbel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/94613] combine: Wrong code due to splitting a simplified IF_THEN_ELSE Date: Thu, 16 Apr 2020 07:37:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: critical X-Bugzilla-Who: krebbel at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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: Thu, 16 Apr 2020 07:37:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94613 --- Comment #5 from Andreas Krebbel --- (In reply to Richard Biener from comment #3) > Why is it not correct to split the insn the way you describe? I see noth= ing > wrong with that - the use of r115 is still under r110 =3D=3D 0. Is the i= ssue > that r115 is re-used and r115 has more than a single use? Yes that's what it appeared to me in the original testcase but I have just noticed that auto-reduction broke it. In the reduced testcase r115 dies in INSN 36 so it isn't useful right now. I agree that the splitting is legal in that case.=