Fix a few warnings for missing parentheses around '||' and extra semicolons.

--

PiperOrigin-RevId: 241994767
This commit is contained in:
River Riddle 2019-04-04 13:25:29 -07:00 committed by Mehdi Amini
parent 4e40c83291
commit dca21299cb
3 changed files with 5 additions and 5 deletions

View File

@ -1640,7 +1640,7 @@ FlatAffineConstraints::addLowerOrUpperBound(unsigned pos, AffineMap boundMap,
assert(pos < getNumDimAndSymbolIds() && "invalid position");
// Equality follows the logic of lower bound except that we add an equality
// instead of an inequality.
assert(!eq || boundMap.getNumResults() == 1 && "single result expected");
assert((!eq || boundMap.getNumResults() == 1) && "single result expected");
if (eq)
lower = true;
@ -2563,7 +2563,7 @@ void FlatAffineConstraints::projectOut(unsigned pos, unsigned num) {
return;
// 'pos' can be at most getNumCols() - 2 if num > 0.
assert(getNumCols() < 2 || pos <= getNumCols() - 2 && "invalid position");
assert((getNumCols() < 2 || pos <= getNumCols() - 2) && "invalid position");
assert(pos + num < getNumCols() && "invalid range");
// Eliminate as many identifiers as possible using Gaussian elimination.
@ -2672,7 +2672,7 @@ static BoundCmpResult compareBounds(ArrayRef<int64_t> a, ArrayRef<int64_t> b) {
return a.back() < b.back() ? Less : Greater;
}
}; // namespace
} // namespace
// Computes the bounding box with respect to 'other' by finding the min of the
// lower bounds and the max of the upper bounds along each of the dimensions.

View File

@ -641,7 +641,7 @@ static inline const char *const *getPredicateNames() {
/*UGT*/ "ugt",
/*UGE*/ "uge"};
return predicateNames;
};
}
// Returns a value of the predicate corresponding to the given mnemonic.
// Returns NumPredicates (one-past-end) if there is no such mnemonic.

View File

@ -1002,7 +1002,7 @@ static Value *vectorizeOperand(Value *operand, Operation *op,
LLVM_DEBUG(dbgs() << "-> non-vectorizable");
LLVM_DEBUG(operand->print(dbgs()));
return nullptr;
};
}
/// Encodes Operation-specific behavior for vectorization. In general we assume
/// that all operands of an op must be vectorized but this is not always true.