https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102519
--- Comment #13 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Created attachment 51520 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51520&action=edit avoid CFG and SSA updates when possible The VRP threader is updating SSAs and CFG even if nothing changes. This could have an effect outside the time/memory budget for the threader, but it's just a guess. I am testing this patch and will commit it shortly. Sorry to keep shooting in the dark here, but could you see if this helps?