-
-
Save modocache/37aeef91b383531a9c067aabd8de213e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mlir/lib/IR/StandardTypes.cpp b/mlir/lib/IR/StandardTypes.cpp | |
index c61e1d9e2ab..c14d786d3e5 100644 | |
--- a/mlir/lib/IR/StandardTypes.cpp | |
+++ b/mlir/lib/IR/StandardTypes.cpp | |
@@ -377,12 +377,6 @@ MemRefType MemRefType::getImpl(ArrayRef<int64_t> shape, Type elementType, | |
Optional<Location> location) { | |
auto *context = elementType.getContext(); | |
- // Check that memref is formed from allowed types. | |
- if (!elementType.isIntOrFloat() && !elementType.isa<VectorType>() && | |
- !elementType.isa<ComplexType>()) | |
- return emitOptionalError(location, "invalid memref element type"), | |
- MemRefType(); | |
- | |
for (int64_t s : shape) { | |
// Negative sizes are not allowed except for `-1` that means dynamic size. | |
if (s < -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment