From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E37183858C83; Tue, 21 Feb 2023 14:52:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E37183858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676991135; bh=WfXlpz7O9lNHgXumrefEpSOVBxS4HnqLUAxvoa5yyEI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kRb2fKNH60v41Kx9h3Z4NSJZi8HiNX3+6Qh+JhgQTkajqlEW4YQy6HYSRcqCGIPQi 3UIsEqSIE4er2WYto8ldNugJzdTtaX3rASx9ISMZJuXWht1Tr/FTatrBRN5rwZVyc4 mWEMWox1lqgE2TOr7yGwxPgH/IfAZRERqBpKs6Z0= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/106041] [12/13 Regression] infinite loop in fast_dce at -O1 with aarch64 Date: Tue, 21 Feb 2023 14:52:14 +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: 12.1.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 12.3 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106041 --- Comment #10 from Richard Biener --- Confirmed, it never finishes word-level iteration. static void fast_dce (bool word_level) { ... while (global_changed) { ... } IMHO that "fast" DCE should hard-limit the iteration count anyway. I'm try= ing to reduce the testcase based on that.=