forked from OSchip/llvm-project
Add LLVM_ATTRIBUTE_UNUSED to function used only in assert (NFC)
This commit is contained in:
parent
572890f1d3
commit
0dd21130ef
|
@ -694,7 +694,7 @@ bool mlir::isValidLoopInterchangePermutation(ArrayRef<AffineForOp> loops,
|
|||
}
|
||||
|
||||
/// 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();
|
||||
for (auto loop : loops.drop_front()) {
|
||||
auto parentForOp = dyn_cast<AffineForOp>(loop.getParentOp());
|
||||
|
|
Loading…
Reference in New Issue