[llvm] [KnownFPClass] Fix input/output subnormal handling for `propagateXorSign` (PR #219837)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 13 07:46:42 PDT 2026


================
@@ -150,6 +150,18 @@ struct KnownFPClass {
     return isKnownNever(fcPositive) && isKnownNeverLogicalNegZero(Mode);
   }
 
+  /// Return true if this cannot have a non-NaN positive value when interpreted
+  /// as an input under \p Mode.
+  bool cannotHavePositiveValue(DenormalMode Mode) const {
----------------
arsenm wrote:

Isn't this the intent of signBitMustBeZero / signBitMustBeOne?

We already have cannotBeOrderedLessThanZero / cannotBeOrderedGreaterThanZero, then need the sign bit specific function for the 0 special case 

https://github.com/llvm/llvm-project/pull/219837


More information about the llvm-commits mailing list