https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90316
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 46310 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46310&action=edit untested patch So on it's own that doesn't help, after changing this --param sccvn-max-alias-queries-per-access makes a difference though (it doesn't before). It's default is somewhat high at 1000, IIRC I chose a default limit that didn't trigger during GCC bootstrap back in time. The refactoring would also enable to assign an overall budget rather than a per access one. Can you try the patch on the original testcase? (it doesn't apply 100% to the GCC 8 branch but I guess you'll manage to do that manually in case needed) On your attached testcase it doesn't make a (big) difference unless you lower --param sccvn-maxa-alias-queries-per-access. I will poke a bit more.