mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 01:09:26 +00:00
Singlepass will also use BMI1 on x86_64 (for TZCNT)
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user