[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:26:27 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:
No, I don't mean in terms of enum. I mean treat it as-if the known bits are a literal 0
https://github.com/llvm/llvm-project/pull/92355
More information about the llvm-commits
mailing list