[PATCH] D147871: ValueTracking: Implement computeKnownFPClass for sqrt

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 13:27:55 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:4449
+
+        // Any negative value besides -0 returns a nan.
+        if (KnownSrc.isKnownNeverNaN() && KnownSrc.SignBit &&
----------------
jcranmer-intel wrote:
> This also includes -subnormal in DAZ=preserve-sign mode.
The comment could elaborate on the preserve sign handling, but I think this is correct as is? There is a pre-existing bug in cannotBeOrderedLessThanZeroImpl for denormal handling 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147871/new/

https://reviews.llvm.org/D147871



More information about the llvm-commits mailing list