Add LLVM_ATTRIBUTE_UNUSED to function used only in assert (NFC)

This commit is contained in:
Mehdi Amini 2020-04-01 17:09:44 +00:00
parent 572890f1d3
commit 0dd21130ef
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ bool mlir::isValidLoopInterchangePermutation(ArrayRef<AffineForOp> loops,
} }
/// Return true if `loops` is a perfect nest. /// Return true if `loops` is a perfect nest.
static bool isPerfectlyNested(ArrayRef<AffineForOp> loops) { static bool LLVM_ATTRIBUTE_UNUSED isPerfectlyNested(ArrayRef<AffineForOp> loops) {
auto outerLoop = loops.front(); auto outerLoop = loops.front();
for (auto loop : loops.drop_front()) { for (auto loop : loops.drop_front()) {
auto parentForOp = dyn_cast<AffineForOp>(loop.getParentOp()); auto parentForOp = dyn_cast<AffineForOp>(loop.getParentOp());