[Mlir-commits] [mlir] [mlir][Vector] add vector.insert canonicalization pattern for vectors created from ub.poison (PR #142944)
Diego Caballero
llvmlistbot at llvm.org
Tue Jun 24 11:59:31 PDT 2025
================
@@ -3149,6 +3149,42 @@ LogicalResult InsertOp::verify() {
return success();
}
+// Calculate the linearized position for inserting elements and extract values
+// from the source attribute. Returns the starting position in the destination
+// vector where elements should be inserted.
+static int64_t calculateInsertPositionAndExtractValues(
+ VectorType destTy, const ArrayRef<int64_t> &positions, Attribute srcAttr,
----------------
dcaballe wrote:
Remove `&` from `ArrayRef`. It's already a reference
https://github.com/llvm/llvm-project/pull/142944
More information about the Mlir-commits
mailing list