mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
MCSHENG64: extend to 64-state based on mcsheng
This commit is contained in:
committed by
Konstantinos Margaritis
parent
dea7c4dc2e
commit
d96f1ab505
@@ -632,6 +632,7 @@ 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);
|
||||
@@ -639,6 +640,9 @@ bytecode_ptr<NFA> getDfa(raw_dfa &rdfa, bool is_transient,
|
||||
if (!dfa) {
|
||||
dfa = sheng64Compile(rdfa, cc, rm, false);
|
||||
}
|
||||
if (!dfa && !is_transient) {
|
||||
dfa = mcshengCompile64(rdfa, cc, rm);
|
||||
}
|
||||
#endif
|
||||
if (!dfa) {
|
||||
// Sheng wasn't successful, so unleash McClellan!
|
||||
|
Reference in New Issue
Block a user