https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987
--- Comment #9 from Martin Jambor <jamborm at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #6) > I suspect this just exposes the latent issue. This pushes for more SRA on > some arguments. Specifically those where ipa-modref says it is safe - that can be because of various things, like (strict) alias violation or fnspec. Can you use tree_sra dbgcount to find the function where things go wrong? The next step, apart from looking at dump differences, would be to look at all functions called from this one (with all the inlining done too) and look for issues.