Changeset 4233


Ignore:
Timestamp:
Oct 14, 2014, 5:55:02 AM (5 years ago)
Author:
cameron
Message:

Bug fix in optimization logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pe_or.cpp

    r4214 r4233  
    1111
    1212PabloE * OptimizeOr::operator ()(PabloE * expr1, PabloE * expr2) {
     13
    1314    if (All * all = dyn_cast<All>(expr1)) {
    1415        if (all->getValue() == 1) {
     
    4344            PabloE * const expr1b = and_expr1->getExpr2();
    4445            PabloE * const expr2a = and_expr2->getExpr1();
    45             PabloE * const expr2b = and_expr2->getExpr1();
     46            PabloE * const expr2b = and_expr2->getExpr2();
    4647            //These optimizations factor out common components that can occur when sets are formed by union
    4748            //(e.g., union of [a-z] and [A-Z].
     
    6061        }
    6162    }
    62 
    6363    return new Or(expr1, expr2);
    6464}
Note: See TracChangeset for help on using the changeset viewer.