[Mlir-commits] [clang] [llvm] [mlir] [LLVM][Constants] Store "splat (float 0.0)" as ConstantFP rather than ConstantAggregateZero. (PR #195284)
Matt Arsenault
llvmlistbot at llvm.org
Mon May 4 05:42:07 PDT 2026
================
@@ -1672,6 +1672,11 @@ static void writeConstantInternal(raw_ostream &Out, const Constant *CV,
Type *Ty = CFP->getType();
if (Ty->isVectorTy()) {
+ if (CFP->isExactlyValue(+0.0)) {
----------------
arsenm wrote:
We probably should have isPosZero surfaced in ConstantFP, instead of just isZero
https://github.com/llvm/llvm-project/pull/195284
More information about the Mlir-commits
mailing list