minor eager prefixes improvements

- count eager prefixes as always run engine when comparing with smwr
 - only check if a prefix is vacuous after adding back literal fragments
This commit is contained in:
Alex Coyte
2016-07-12 14:01:51 +10:00
committed by Matthew Barr
parent e95a251935
commit 981b59fd05
2 changed files with 9 additions and 3 deletions

View File

@@ -1234,6 +1234,11 @@ u32 roseQuality(const RoseEngine *t) {
always_run++;
}
if (t->eagerIterOffset) {
/* eager prefixes are always run */
always_run++;
}
const HWLM *ftable = getFLiteralMatcher(t);
if (ftable) {
/* TODO: ignore conditional ftables, or ftables beyond smwr region */