mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
SHENG32: Compile priority sheng > mcsheng > sheng32.
This commit is contained in:
committed by
Konstantinos Margaritis
parent
cc747013c4
commit
6a42b37fca
@@ -632,6 +632,11 @@ 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);
|
||||
}
|
||||
#endif
|
||||
if (!dfa) {
|
||||
// Sheng wasn't successful, so unleash McClellan!
|
||||
dfa = mcclellanCompile(rdfa, cc, rm, false);
|
||||
|
Reference in New Issue
Block a user