Ignore:
Timestamp:
Aug 28, 2017, 4:00:17 PM (19 months ago)
Author:
nmedfort
Message:

Bug fixes for multigrep mode. Optional PabloKernel? branch hit counter added. Minor optimizations.

File:
1 edited

Legend:

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

    r5617 r5620  
    7272   
    7373MarkerType RE_Compiler::compile_local(RE * re, MarkerType marker, PabloBuilder & pb) {
    74     UCD::UnicodeSet* first = RE_Local::first(re);
    75     PabloAST * pablo_first = mCCCompiler.compileCC(makeCC(std::move(*first)));
    76     UCD::UnicodeSet* final = RE_Local::final(re);
    77     PabloAST * pablo_final = mCCCompiler.compileCC(makeCC(std::move(*final)));
    78     std::map<UCD::UnicodeSet*, UCD::UnicodeSet*> follow_map;
    79     RE_Local::follow(re, follow_map);
     74    CC * first = RE_Local::first(re);
     75    CC * final = RE_Local::final(re);
    8076
    8177    if (first == nullptr || final == nullptr) {
     
    8379        return process(re, marker, pb);
    8480    }
     81
     82    PabloAST * pablo_first = mCCCompiler.compileCC(first);
     83    PabloAST * pablo_final = mCCCompiler.compileCC(final);
     84    std::map<CC*, CC*> follow_map;
     85    RE_Local::follow(re, follow_map);
    8586
    8687    PabloAST * pablo_follow = pb.createZeroes();
Note: See TracChangeset for help on using the changeset viewer.