https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105598
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- r12-3918-g5b8b1522e04adc20980f396571be1929a32d148a is an optimization improvement. When backporting the change the failure goes away but it re-appears with -fdisable-tree-fre1 and can be mitigated with -fno-ipa-cp. -fdisable-tree-fre1 doesn't re-introduce the issue on trunk. Can you bisect what fixed this with -fdisable-tree-fre1?