https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112616
--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> --- Fixed on trunk. I did not want to backport this but because this variant does not require disabling DCE, I will probably do after a few weeks on master, if there are no issues.