[Mlir-commits] [mlir] [mlir][llvm] Return failure from type converter for n-D scalable vectors (PR #65450)
Cullen Rhodes
llvmlistbot at llvm.org
Mon Sep 11 01:29:19 PDT 2023
================
@@ -503,9 +507,8 @@ Type LLVMTypeConverter::convertVectorType(VectorType type) const {
type.getScalableDims().back());
assert(LLVM::isCompatibleVectorType(vectorType) &&
"expected vector type compatible with the LLVM dialect");
- assert(
- (!type.isScalable() || (type.getRank() == 1)) &&
- "expected 1-D scalable vector (n-D scalable vectors are not supported)");
+ if (type.isScalable() && (type.getRank() > 1))
----------------
c-rhodes wrote:
For 0-D it won't reach here having returned already
https://github.com/llvm/llvm-project/pull/65450
More information about the Mlir-commits
mailing list