[Mlir-commits] [mlir] [MLIR] support dynamic indexing in `VectorEmulateNarrowTypes` (PR #114169)
Han-Chung Wang
llvmlistbot at llvm.org
Mon Nov 4 13:26:02 PST 2024
================
@@ -133,9 +133,9 @@ static FailureOr<Operation *> getCompressedMaskOp(OpBuilder &rewriter,
static Value extractSubvectorFrom(RewriterBase &rewriter, Location loc,
VectorType extractType, Value source,
int64_t frontOffset, int64_t subvecSize) {
- auto vectorType = dyn_cast<VectorType>(source.getType());
- assert(vectorType && vectorType.getRank() == 1 &&
- extractType.getRank() == 1 &&
+ auto vectorType = cast<VectorType>(source.getType());
+ assert((vectorType.getRank() == 1 &&
+ extractType.getRank() == 1) &&
"expected 1-D source and destination types");
----------------
hanhanW wrote:
I think you need to run clang-format.
https://github.com/llvm/llvm-project/pull/114169
More information about the Mlir-commits
mailing list