From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5A59385803E; Wed, 13 Apr 2022 07:37:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5A59385803E From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/105231] [12 Regression] ICE: in rtl_verify_bb_insns, at cfgrtl.cc:2797 (flow control insn inside a basic block) with custom flags since r12-4767-g81342e95827f77c0 Date: Wed, 13 Apr 2022 07:37:33 +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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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: Wed, 13 Apr 2022 07:37:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105231 --- Comment #21 from Eric Botcazou --- > I'm not sure that's a general enough fix though since we seem to drop > the REG_EQUAL note and as soon as we do that there's a disconnect > between what CFG generation thinks throws and what combine thinks > is good enough to put a REG_EH_REGION note on. Yes, we actually drop 2 REG_EQUAL notes: (insn 22 17 78 3 (set (reg:SF 92) (mem/u/c:SF (symbol_ref/u:SI ("*.LC0") [flags 0x2]) [0 S4 A32])) "pr105231.c":6:3 142 {*movsf_internal} (expr_list:REG_EQUAL (const_double:SF 1.8446744073709551616e+19 [0x0.8p+65]) (nil))) (insn 78 22 24 3 (set (reg:XF 99) (float_extend:XF (reg:SF 92))) 166 {*extendsfxf2_i387} (expr_list:REG_DEAD (reg:SF 92) (expr_list:REG_EQUAL (const_double:XF 1.8446744073709551616e+19 [0x0.8p+65]) (nil)))) --> (insn 78 22 24 3 (set (reg:XF 99) (float_extend:XF (mem/u/c:SF (symbol_ref/u:SI ("*.LC0") [flags 0x2]= ) [0 S4 A32]))) 166 {*extendsfxf2_i387} (expr_list:REG_EH_REGION (const_int 1 [0x1]) (nil))) so an immediate solution would be to preserve the one on insn 78 (and arran= ge for the purge_dead_edge magic to trigger again).=