[Mlir-commits] [mlir] [mlir][vector] Add `ShapeCastCreateMaskFolderLeadingOneDim` (PR #219494)
Alessandro Potenza
llvmlistbot at llvm.org
Tue Sep 1 10:05:55 PDT 2026
================
@@ -6974,9 +6974,114 @@ static VectorType trimTrailingOneDims(VectorType oldType) {
return VectorType::get(newShape, oldType.getElementType(), newScalableDims);
}
+/// Helper function that computes a new vector type based on the input vector
+/// type by removing the trailing one dims:
+///
+/// vector<4x1x1xi1> --> vector<4x1xi1>
----------------
alepot55 wrote:
Copy-paste from the trailing version.
```suggestion
/// type by removing the leading unit dims:
///
/// vector<1x1x4xi1> --> vector<4xi1>
```
https://github.com/llvm/llvm-project/pull/219494
More information about the Mlir-commits
mailing list