Skip to content

Commit a206c53

Browse files
committed
[MLIR][MemRef] Eliminate redundant validation
1 parent d894a99 commit a206c53

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,14 +1549,6 @@ LogicalResult GlobalOp::verify() {
15491549
}
15501550
}
15511551

1552-
if (std::optional<uint64_t> alignAttr = getAlignment()) {
1553-
uint64_t alignment = *alignAttr;
1554-
1555-
if (!llvm::isPowerOf2_64(alignment))
1556-
return emitError() << "alignment attribute value " << alignment
1557-
<< " is not a power of 2";
1558-
}
1559-
15601552
// TODO: verify visibility for declarations.
15611553
return success();
15621554
}

0 commit comments

Comments
 (0)