https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28850
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2006-08-25 21:59:14 |2021-12-24 Keywords|patch |EH --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- When we get to tailc pass we have the following IR still: ;; Function bar (_Z3barPFvvE, funcdef_no=7, decl_uid=4010, cgraph_uid=8, symbol_order=7) void bar (void (*<T5e0>) (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 <L0>: resx 2 ;; succ: } 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.