Re: [PATCH] cfgrtl: Remove REG_EH_REGION notes from tail calls [PR119613]

2025-04-04 Thread Richard Biener
> Am 04.04.2025 um 19:25 schrieb Jakub Jelinek : > > Hi! > > In PR119491 r15-9154 I've allowed some useless EH regions for musttail > calls (if there are no non-debug/clobber stmts before resx which resumes > external throwing). > Now, for -O1+ (but not -O0/-Og) there is a cleanup_eh pass aft

[PATCH] cfgrtl: Remove REG_EH_REGION notes from tail calls [PR119613]

2025-04-04 Thread Jakub Jelinek
Hi! In PR119491 r15-9154 I've allowed some useless EH regions for musttail calls (if there are no non-debug/clobber stmts before resx which resumes external throwing). Now, for -O1+ (but not -O0/-Og) there is a cleanup_eh pass after it which should optimize that way. The following testcase ICEs at