[Mlir-commits] [mlir] [mlir] Fix VectorType clone with shape of a different rank (PR #173007)
Andrey Pavlenko
llvmlistbot at llvm.org
Wed Jan 7 12:08:55 PST 2026
================
@@ -285,8 +285,10 @@ VectorType VectorType::scaleElementBitwidth(unsigned scale) {
VectorType VectorType::cloneWith(std::optional<ArrayRef<int64_t>> shape,
Type elementType) const {
- return VectorType::get(shape.value_or(getShape()), elementType,
- getScalableDims());
+ auto shapeVal = shape.value_or(getShape());
----------------
AndreyPavlenko wrote:
Done.
https://github.com/llvm/llvm-project/pull/173007
More information about the Mlir-commits
mailing list