[llvm] [ValueTracking] Fix assertion failure when `computeKnownFPClass` returns fcNone (PR #92355)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 00:07:12 PDT 2024
================
@@ -1126,7 +1126,8 @@ static void computeKnownBitsFromOperator(const Operator *I,
KnownFPClass Result = computeKnownFPClass(V, fcAllFlags, Depth + 1, Q);
FPClassTest FPClasses = Result.KnownFPClasses;
- if (Result.isKnownNever(fcNormal | fcSubnormal | fcNan)) {
+ if (FPClasses != fcNone &&
----------------
arsenm wrote:
Can we just assume the none case is a 0?
https://github.com/llvm/llvm-project/pull/92355
More information about the llvm-commits
mailing list