Ignore:
Timestamp:
Dec 15, 2017, 12:44:01 PM (19 months ago)
Author:
nmedfort
Message:

Initial check-in of LookAhead? support; modified LineBreakKernel? to compute CR+LF using LookAhead?(1) + misc. fixes.

File:
1 edited

Legend:

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

    r5714 r5782  
    172172
    173173PabloAST * PabloBuilder::createLookahead(PabloAST * expr, PabloAST * shiftAmount) {
    174     if (isa<Zeroes>(expr) || cast<Integer>(shiftAmount)->value() == 0) {
     174    if (LLVM_UNLIKELY(isa<Zeroes>(expr) || cast<Integer>(shiftAmount)->value() == 0)) {
    175175        return expr;
    176176    }
     
    180180
    181181PabloAST * PabloBuilder::createLookahead(PabloAST * expr, PabloAST * shiftAmount, const llvm::StringRef & prefix) {
    182     if (isa<Zeroes>(expr) || cast<Integer>(shiftAmount)->value() == 0) {
     182    if (LLVM_UNLIKELY(isa<Zeroes>(expr) || cast<Integer>(shiftAmount)->value() == 0)) {
    183183        return expr;
    184184    }
Note: See TracChangeset for help on using the changeset viewer.