https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122016
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |tree-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-09-21
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Working:
<bb 7> [local count: 134164041]:
i_18(ab) = i_2(ab) + 1;
directory_exists ();
<bb 8> [local count: 134110376]:
_39 = i_18(ab) + 1;
help_found_7 = help_found_26(ab);
failing case:
<bb 7> [local count: 134164041]:
i_18(ab) = i_2(ab) + 1;
directory_exists ();
<bb 8> [local count: 134110376]:
_39 = i_18(ab) + 1;
help_found_7 = help_found_26(ab);
Looks like PRE is doing it.