[llvm] [SelectionDAG] Assert on non-FP operand to `computeKnownFPClass` (PR #189752)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 08:59:35 PDT 2026
https://github.com/zGoldthorpe updated https://github.com/llvm/llvm-project/pull/189752
>From ca9da121e88ab598952907d0852d04ca52615f5c Mon Sep 17 00:00:00 2001
From: Zach Goldthorpe <Zach.Goldthorpe at amd.com>
Date: Tue, 31 Mar 2026 16:04:34 -0500
Subject: [PATCH] [SelectionDAG] Assert on non-FP operand to
`computeKnownFPClass`
---
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 3716de880cce3..27312aaa199f0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -6077,6 +6077,7 @@ KnownFPClass SelectionDAG::computeKnownFPClass(SDValue Op,
return Known;
[[maybe_unused]] EVT VT = Op.getValueType();
+ assert(VT.isFloatingPoint() && "Computing KnownFPClass on non-FP op!");
assert((!VT.isFixedLengthVector() ||
DemandedElts.getBitWidth() == VT.getVectorNumElements()) &&
"Unexpected vector size");
More information about the llvm-commits
mailing list