From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0CDD3385781D; Wed, 9 Sep 2020 16:56:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CDD3385781D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599670614; bh=/sd9+B6s7Eh2JDKs3tIOvzY7Ii34m3+MJWvkJt01my0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hRIe/cP682gQoxtR9KMUOi5i81+F6JwTsY89bRKPw06R67tOSDnH3NqVQGOIHN/f6 wZNWjgTRi/PMBkC3BIOVP5eSZNb2g/wlBP3TguPdQx4ZY7CFUyh/y5GkT3FBeQyRUN 0hpff9wAFv9Hv0QwzHuW0LQLk5bZcBQPOj9QGPaM= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/96475] direct threaded interpreter with computed gotos generates suboptimal dispatch loop Date: Wed, 09 Sep 2020 16:56:53 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: Wed, 09 Sep 2020 16:56:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96475 --- Comment #7 from CVS Commits --- The master branch has been updated by Segher Boessenkool : https://gcc.gnu.org/g:69ca5f3a988266da8905aef9cf22aa02807e0471 commit r11-3078-g69ca5f3a988266da8905aef9cf22aa02807e0471 Author: Segher Boessenkool Date: Fri Aug 7 01:31:38 2020 +0000 bb-reorder: Remove a misfiring micro-optimization (PR96475) When the compgotos pass copies the tail of blocks ending in an indirect jump, there is a micro-optimization to not copy the last one, since the original block will then just be deleted. This does not work properly if cleanup_cfg does not merge all pairs of blocks we expect it to. It also does not work if that last block can be merged into multiple predecessors. 2020-09-09 Segher Boessenkool PR rtl-optimization/96475 * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p micro-optimization.=