Singlepass will also use BMI1 on x86_64 (for TZCNT)

This commit is contained in:
ptitSeb
2022-11-23 13:12:11 +01:00
parent 605acaeb6e
commit 3ffda13056

View File

@ -259,7 +259,7 @@ impl Compiler for SinglepassCompiler {
}
fn get_cpu_features_used(&self, cpu_features: &EnumSet<CpuFeature>) -> EnumSet<CpuFeature> {
let used = CpuFeature::AVX | CpuFeature::SSE42 | CpuFeature::LZCNT;
let used = CpuFeature::AVX | CpuFeature::SSE42 | CpuFeature::LZCNT | CpuFeature::BMI1;
cpu_features.intersection(used)
}
}