https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126695
Bug ID: 126695
Summary: Drop a redundant nested fmin or fmax
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: easyhack, missed-optimization
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ktkachov at gcc dot gnu.org
Target Milestone: ---
double f (double x, double y)
{ return __builtin_fmin (__builtin_fmin (x, y), y); }
Should generate on aarch64 just:
f:
fminnm d0, d0, d1
ret
