Discard HAVE_AVX512VBMI checks at Sheng/McSheng compile time.

This commit is contained in:
Chang, Harry
2020-10-21 12:30:04 +00:00
committed by Konstantinos Margaritis
parent b19a41528a
commit 5ad3d64b4b
12 changed files with 18 additions and 77 deletions

View File

@@ -632,8 +632,6 @@ bytecode_ptr<NFA> getDfa(raw_dfa &rdfa, bool is_transient,
* bytecode and that they are usually run on small blocks */
dfa = mcshengCompile(rdfa, cc, rm);
}
#if defined(HAVE_AVX512VBMI)
if (!dfa) {
dfa = sheng32Compile(rdfa, cc, rm, false);
}
@@ -643,7 +641,6 @@ bytecode_ptr<NFA> getDfa(raw_dfa &rdfa, bool is_transient,
if (!dfa && !is_transient) {
dfa = mcshengCompile64(rdfa, cc, rm);
}
#endif
if (!dfa) {
// Sheng wasn't successful, so unleash McClellan!
dfa = mcclellanCompile(rdfa, cc, rm, false);