[Mlir-commits] [mlir] [mlir][vector] Avoid setting padding by default to `0` in `vector.transfer_read` prefer `ub.poison` (PR #146088)
Fabian Mora
llvmlistbot at llvm.org
Mon Jun 30 09:38:47 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);
----------------
fabianmcg wrote:
Good catch. There's an assertion that I should add here. However, `FloatAttr::get(f8E8M0, 0)` wouldn't assert as it successfully converts the value that it's close to 0 (5.9E-39).
https://github.com/llvm/llvm-project/pull/146088
More information about the Mlir-commits
mailing list