Ignore:
Timestamp:
Dec 4, 2014, 7:24:31 AM (5 years ago)
Author:
cameron
Message:

Optimize makeDiff, makeIntersect if both args are CCs

File:
1 edited

Legend:

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

    r4308 r4319  
    4040}
    4141
     42//#define USE_IF_FOR_NONFINAL 1
     43
    4244void RE_Compiler::compile(RE * re, PabloBlock & pb) {
    4345
     
    5557    mInitial = pb.createVar(pb.createAssign(initial, pb.createOr(u8pfx, u8single)));
    5658    #ifdef USE_IF_FOR_NONFINAL
    57     mNonFinal = pb.createVar(pb.createAssign(gs_nonfinal, pb.createZeroes()));
     59    mNonFinal = pb.createVar(pb.createAssign(nonfinal, pb.createZeroes()));
    5860    #endif
    5961    PabloAST * u8scope32 = pb.createAdvance(u8pfx3, 1);
     
    6264    #ifdef USE_IF_FOR_NONFINAL
    6365    PabloBlock it(pb);
    64     it.createAssign(gs_nonfinal, it.createOr(it.createOr(u8pfx, u8scope32), it.createOr(u8scope42, u8scope43)));
     66    it.createAssign(nonfinal, it.createOr(it.createOr(u8pfx, u8scope32), it.createOr(u8scope42, u8scope43)));
    6567    pb.createIf(u8pfx, std::move(it));
    6668    #else
Note: See TracChangeset for help on using the changeset viewer.