https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124895
--- Comment #3 from Alex Coplan <acoplan at gcc dot gnu.org> --- Thanks for the detailed analysis. Moving the pass above pass_free_cfg sounds like the correct fix to me too, and looking at the pass list I don't think it should be too invasive. I'd hope to see minimal codegen changes with such a change, perhaps you could verify that by compiling some benchmarks with -mnarrow-gp-writes and comparing binaries before/after that change? I tend to agree that we should stage the fix on trunk (perhaps once 16.1 has been released, since we can then enable the pass by default), and then backport to 16.2 if there's no fallout after a week or two.
