[Bug tree-optimization/124589] Missed optimization for std::ranges::contains
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 21 00:00:28 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124589
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
if (_3 != __first_7)
goto <bb 3>; [94.50%]
else
goto <bb 5>; [5.50%]
<bb 5> [local count: 114863531]:
# __first_11 = PHI <__first_7(4), __first_10(3)>
_8 = _3 != __first_11;
I think I saw this before ...
More information about the Gcc-bugs
mailing list