[Mlir-commits] [mlir] [mlir][x86] Add extra patterns for AMX nano-kernel lowering (acc with zero constant) (PR #222513)

Arun Thangamani llvmlistbot at llvm.org
Tue Sep 22 06:13:01 PDT 2026


================
@@ -27,6 +27,24 @@ using namespace mlir::x86;
 
 namespace {
 
+// Return true if the operation is a constant dense element
+// attribute.
+static bool isZeroVectorConstant(Operation *op) {
+  auto constantOp = dyn_cast<arith::ConstantOp>(op);
+  if (!constantOp)
+    return false;
+
+  auto vectorType = dyn_cast<VectorType>(constantOp.getType());
+  if (!vectorType)
+    return false;
----------------
arun-thmn wrote:

Done. 

https://github.com/llvm/llvm-project/pull/222513


More information about the Mlir-commits mailing list