Changeset 6202


Ignore:
Timestamp:
Nov 17, 2018, 5:32:58 PM (5 months ago)
Author:
cameron
Message:

inFile optimization

File:
1 edited

Legend:

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

    r6173 r6202  
    467467
    468468PabloAST * PabloBuilder::createInFile(PabloAST * expr) {
    469     if (isa<Zeroes>(expr)) return expr;
     469    if (LLVM_UNLIKELY(isa<InFile>(expr) || isa<Zeroes>(expr))) {
     470        return expr;
     471    }
    470472    return MAKE_UNARY(InFile, expr);
    471473}
    472474
    473475PabloAST * PabloBuilder::createInFile(PabloAST * expr, const llvm::StringRef & prefix) {
     476    if (LLVM_UNLIKELY(isa<InFile>(expr) || isa<Zeroes>(expr))) {
     477        return expr;
     478    }
    474479    return MAKE_NAMED_UNARY(InFile, prefix, expr);
    475480}
Note: See TracChangeset for help on using the changeset viewer.