Ignore:
Timestamp:
Jan 29, 2016, 3:38:47 PM (3 years ago)
Author:
nmedfort
Message:

Incorporated a few common case boolean optimizations in the Simplifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pabloAST.h

    r4899 r4922  
    621621
    622622/** ------------------------------------------------------------------------------------------------------------- *
    623  * @brief removeOperand
     623 * @brief deleteOperand
    624624 ** ------------------------------------------------------------------------------------------------------------- */
    625625inline bool Variadic::deleteOperand(const PabloAST * const expr) {
    626626    for (unsigned i = 0; i != getNumOperands(); ++i) {
    627         if (getOperand(i) == expr) {
     627        if (LLVM_UNLIKELY(getOperand(i) == expr)) {
    628628            removeOperand(i);
    629629            return true;
Note: See TracChangeset for help on using the changeset viewer.