https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76174
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2016-08-13 00:00:00 |2021-8-18 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- VN can optimizes this away now. So you need "-fno-tree-fre -fno-tree-pre -fno-code-hoisting" to see VRP is not able to optimize this away.