Ignore:
Timestamp:
Nov 28, 2017, 1:45:19 AM (21 months ago)
Author:
nmedfort
Message:

Bug fix for segment pipeline parallel mode + memory management improvements.

File:
1 edited

Legend:

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

    r5728 r5748  
    3333
    3434RE * multiplex(RE * const re,
    35                const std::vector<UCD::UnicodeSet> & UnicodeSets,
     35               const std::vector<const CC *> & UnicodeSets,
    3636               const std::vector<std::vector<unsigned>> & exclusiveSetIDs) {
    3737
     
    4444                if (LLVM_LIKELY(name->getDefinition() != nullptr)) {
    4545                    if (CC * cc = dyn_cast<CC>(name->getDefinition())) {
    46                         UCD::UnicodeSet * sets = cast<UCD::UnicodeSet>(cc);
    47                         auto index = find(UnicodeSets.begin(), UnicodeSets.end(), *sets) - UnicodeSets.begin();
    48                         auto exclusive_IDs = exclusiveSetIDs[index];
     46                        const auto index = find(UnicodeSets.begin(), UnicodeSets.end(), cc) - UnicodeSets.begin();
     47                        const auto exclusive_IDs = exclusiveSetIDs[index];
    4948                        CC * CC_union = makeCC();
    5049                        for (auto i : exclusive_IDs) {
Note: See TracChangeset for help on using the changeset viewer.