Ignore:
Timestamp:
Oct 27, 2017, 9:28:02 AM (20 months ago)
Author:
cameron
Message:

Indexed advance up to 256

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_compiler.cpp

    r5710 r5711  
    399399        PabloAST * marker_fwd = pb.createAdvance(markerVar(marker), pos);
    400400        return makeMarker(MarkerPosition::FinalMatchUnit, pb.createAnd(marker_fwd, cc_lb, "lowerbound"));
    401     } else if (!mGraphemeBoundaryRule && isUnicodeUnitLength(repeated) && !AlgorithmOptionIsSet(DisableLog2BoundedRepetition) && (lb < sizeof(size_t) * 8) && AVX2_available()) {
     401    } else if (!mGraphemeBoundaryRule && isUnicodeUnitLength(repeated) && !AlgorithmOptionIsSet(DisableLog2BoundedRepetition) && (lb <= codegen::BlockSize) && AVX2_available()) {
    402402        PabloAST * cc = markerVar(compile(repeated, pb));
    403403        PabloAST * cc_lb = consecutive_matches(cc, 1, lb, mFinal, pb);
     
    445445        PabloAST * bounded = pb.createMatchStar(cursor, pb.createOr(masked, nonFinal), "bounded");
    446446        return makeMarker(MarkerPosition::FinalPostPositionUnit, bounded);
    447     } else if (!mGraphemeBoundaryRule && isUnicodeUnitLength(repeated) && ub > 1 && !AlgorithmOptionIsSet(DisableLog2BoundedRepetition)&& (ub < sizeof(size_t) * 8) && AVX2_available()) {
     447    } else if (!mGraphemeBoundaryRule && isUnicodeUnitLength(repeated) && ub > 1 && !AlgorithmOptionIsSet(DisableLog2BoundedRepetition)&& (ub <= codegen::BlockSize) && AVX2_available()) {
    448448        // log2 upper bound for fixed length (=1) class
    449449        // Create a mask of positions reachable within ub from current marker.
Note: See TracChangeset for help on using the changeset viewer.