https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107740
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >phi-opt1 is the "early phi-opt" which tries not to do it here. Let me expand on that, it tries not to insert a cast here to do the conversion from bool to int.