[llvm] [InstCombine] Generalize ignoreSignBitOfZero/NaN to handle more cases (PR #141015)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 02:50:16 PDT 2025


================
@@ -6357,6 +6357,118 @@ std::optional<bool> llvm::computeKnownFPSignBit(const Value *V, unsigned Depth,
   return Known.SignBit;
 }
 
+/// Return true if the sign bit of result can be ignored by the user when the
+/// result is zero.
----------------
nikic wrote:

No need to repeat comment here.

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


More information about the llvm-commits mailing list