https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101024
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Part of this is in the patch set in bug 25290 comment # 27 patch set. Mostly the "c ? min/max : min/max" part, I still need to implement the "c ? min : d" part.