Ignore:
Timestamp:
Oct 23, 2018, 11:30:30 AM (12 months ago)
Author:
cameron
Message:

Test case and bug fix for overaggressive memoization

File:
1 edited

Legend:

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

    r6173 r6176  
    266266
    267267RE * RE_Transformer::transform(RE * const from) {
    268     assert (from);
    269     const auto f = mMap.find(from);
    270     if (f != mMap.end()) {
    271         return f->second;
    272     }
    273 
    274268    using T = RE::ClassTypeId;
    275269    RE * to = from;
     
    304298    }
    305299
    306     mMap.emplace(from, to);
    307 
    308300    return to;
    309301}
Note: See TracChangeset for help on using the changeset viewer.