[Mlir-commits] [mlir] [mlir][vector] Avoid setting padding by default to `0` in `vector.transfer_read` prefer `ub.poison` (PR #146088)

Jakub Kuderski llvmlistbot at llvm.org
Mon Jun 30 09:48:39 PDT 2025


================
@@ -154,6 +154,9 @@ Value getReductionOp(AtomicRMWKind op, OpBuilder &builder, Location loc,
                      Value lhs, Value rhs);
 
 arith::CmpIPredicate invertPredicate(arith::CmpIPredicate pred);
+
+/// Creates an `arith.constant` operation with a zero value of type `type`.
+Value getZeroConstant(OpBuilder &builder, Location loc, Type type);
----------------
kuhar wrote:

> `FloatAttr::get(f8E8M0, 0)` wouldn't assert

IMO this is a footgun and I'd rather it asserted...

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


More information about the Mlir-commits mailing list