[Mlir-commits] [mlir] [mlir][vector]add foldConstantOp fold function and apply it to extractOp and insertOp. (PR #124399)
lonely eagle
llvmlistbot at llvm.org
Tue Jan 28 00:58:01 PST 2025
================
@@ -2979,3 +2979,47 @@ func.func @contiguous_scatter_step(%base: memref<?xf32>,
memref<?xf32>, vector<16xindex>, vector<16xi1>, vector<16xf32>
return
}
+
+// -----
+
+// CHECK-LABEL: func @extract_arith_constnt
+
+func.func @extract_arith_constnt() -> i32 {
+ %c1_i32 = arith.constant 1 : i32
+ return %c1_i32 : i32
+}
+
----------------
linuxlonelyeagle wrote:
I did neglect to mention that this is the result of running -canonicalize.
https://github.com/llvm/llvm-project/pull/124399
More information about the Mlir-commits
mailing list