https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111110
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |WONTFIX --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So this won't work even though it is the right thing to do because when we are folding `if (a != 1)` and a is defined by a comparison, we want to get back the comparison. Now you could say this is problem in how we fold GIMPLE_COND but it is what it is right now.