From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EEA373858406; Sat, 25 Dec 2021 06:12:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEA373858406 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/28850] missed call -> jmp transformation; redundant unwind stuff with empty finally Date: Sat, 25 Dec 2021 06:12:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.1.2 X-Bugzilla-Keywords: EH, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on keywords 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: Sat, 25 Dec 2021 06:12:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D28850 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2006-08-25 21:59:14 |2021-12-24 Keywords|patch |EH --- Comment #6 from Andrew Pinski --- When we get to tailc pass we have the following IR still: ;; Function bar (_Z3barPFvvE, funcdef_no=3D7, decl_uid=3D4010, cgraph_uid= =3D8, symbol_order=3D7) void bar (void (*) (void) f) { ;; basic block 2, loop depth 0 ;; pred: ENTRY f_2(D) (); ;; succ: 4 ;; 3 ;; basic block 3, loop depth 0 ;; pred: 2 return; ;; succ: EXIT ;; basic block 4, loop depth 0 ;; pred: 2 : resx 2 ;; succ:=20=20=20=20=20=20 } And the resx is removed while in resx pass while we might as well remove it before hand really because the bb is empty otherwise.=