https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155
prathamesh3492 at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |prathamesh3492 at gcc dot gnu.org --- Comment #30 from prathamesh3492 at gcc dot gnu.org --- Hi Richard, I tried your patch in comment #9 with the fix in comment #13 but since tree-ssa-pre.c appears to be refactored, the fix doesn't apply anymore and ICE resurfaces. Could you guide me what fix I should apply to reproduce the regression ? IIUC the issue here is that code-hoisting is increasing register pressure thus causing the extra spill ? And GIMPLE does not seem to have cost model for register allocation. Are you planning to take a look at this PR soon ? If not I would like to give a try and would be grateful for suggestions on how to approach this bug. Thanks!