https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166
--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Andi Kleen from comment #13) > Created attachment 58842 [details] > add a param to limit BBs for dominator pass > > Maybe something like this patch. It adds a check to disable the dom passes > when the number of BBs per function exceeds a threshold. By default it is > disabled, but you can set it with --param dom-bb-limit=10000 or similar The dominator pass isn't the problem - it's ranger used by the jump threading from it. See the patch in the other PR - you can try if that helps.