https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68894
Bug ID: 68894 Summary: Recognition min/max pattern with multiple arguments. Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ysrumyan at gmail dot com Target Milestone: --- Analyzing one important benchmark (rgb to cmyk conversion) we found out that MIN pattern is not recognized for more than 2 arguments. I attached simple reproducer which exhibit the issue - explicit use of multiple <IM macros leads to more effective binary for x86. I attached simple test-case for two sequential MIN but such recognition must be implemented for arbitrary number of comparisons.