https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80574
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- One thing I noticed is that: _2 = MAX_EXPR <_6, a3_7(D)>; _3 = MAX_EXPR <_2, a3_7(D)>; Is not optimized at all. (for minmax (min max) (simplify (minmax:c (minmax:c@2 @0 @1) @0) @2))