SHENG32: Compile priority sheng > mcsheng > sheng32.

This commit is contained in:
Chang, Harry
2020-07-20 06:36:53 +00:00
committed by Konstantinos Margaritis
parent cc747013c4
commit 6a42b37fca
4 changed files with 45 additions and 8 deletions

View File

@@ -793,6 +793,11 @@ bytecode_ptr<NFA> getDfa(raw_dfa &rdfa, const CompileContext &cc,
bytecode_ptr<NFA> dfa = nullptr;
if (cc.grey.allowSmallWriteSheng) {
dfa = shengCompile(rdfa, cc, rm, only_accel_init, &accel_states);
#if defined(HAVE_AVX512VBMI)
if (!dfa) {
dfa = sheng32Compile(rdfa, cc, rm, only_accel_init, &accel_states);
}
#endif
}
if (!dfa) {
dfa = mcclellanCompile(rdfa, cc, rm, only_accel_init,