Some versions of Sandybridge, Ivybridge, Haswell, and Broadwell CPUs don't support AVX. Currently, getHostCPUName changes the CPU name to Nehalem when it detects one of the CPUs. This also ends up disabling other features that these CPUs might still have as well as changing the scheduling model, etc.
This patch attempts to correct this by allowing the CPU name to work unaltered and then use getHostCPUFeatures to explicitly specify which features are enabled and disabled.
Similar patch will also be made to llc.