Keeping an ever growing list of CPUs just to pass -march to the compiler and enable fast_cmov is a waste of time. Every CPU we know has limitations is already handled here, so just fallback to enabling everything when a passed in argument is not one of those. This will enable optimizations for CPU architectures released in the past 7 or so years with supported GCC and clang compilers when used as argument in configure, instead of silently ignoring them.
Unified · Split
| @@ -5445,20 +5445,18 @@ elif enabled x86; then · 5444 unmodified lines | ||
| 5445 | 5445 | cpuflags="-march=$cpu" |
| 5446 | 5446 | disable i686 |
| 5447 | 5447 | ;; |
| 5448 | − # targets that do support nopl and conditional mov (cmov) | |
| 5449 | − i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx\ | |
| 5450 | − |core*|atom|bonnell|nehalem|westmere|silvermont|sandybridge|ivybridge|haswell|broadwell|skylake*|knl\ | |
| 5451 | − |amdfam10|barcelona|b[dt]ver*|znver*) | |
| 5452 | − cpuflags="-march=$cpu" | |
| 5453 | − enable i686 | |
| 5454 | − enable fast_cmov | |
| 5455 | − ;; | |
| 5456 | 5448 | # targets that do support conditional mov but on which it's slow |
| 5457 | 5449 | pentium4|pentium4m|prescott|nocona) |
| 5458 | 5450 | cpuflags="-march=$cpu" |
| 5459 | 5451 | enable i686 |
| 5460 | 5452 | disable fast_cmov |
| 5461 | 5453 | ;; |
| 5454 | + # everything else should support nopl and conditional mov (cmov) | |
| 5455 | + *) | |
| 5456 | + cpuflags="-march=$cpu" | |
| 5457 | + enable i686 | |
| 5458 | + enable fast_cmov | |
| 5459 | + ;; | |
| 5462 | 5460 | esac |
| 5463 | 5461 | |
| 5464 | 5462 | fi |