Ignore:
Timestamp:
Jul 23, 2015, 11:17:02 PM (4 years ago)
Author:
nmedfort
Message:

Bug fixes for last check in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/expression_map.hpp

    r4692 r4695  
    264264            case PabloAST::ClassTypeId::Or:
    265265            case PabloAST::ClassTypeId::Xor:
     266                // test whether the communative version of this statement exists
     267                if (PabloAST * commExpr = mBinary.find(stmt->getClassTypeId(), stmt->getOperand(1), stmt->getOperand(0))) {
     268                    return std::make_pair(commExpr, false);
     269                }
    266270            case PabloAST::ClassTypeId::Advance:
    267271            case PabloAST::ClassTypeId::ScanThru:
Note: See TracChangeset for help on using the changeset viewer.