[llvm] [InstCombine] Preserve the sign bit of NaN in `SimplifyDemandedUseFPClass` (PR #137287)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 01:40:28 PDT 2025
================
@@ -1959,9 +1959,11 @@ static Constant *getFPClassConstant(Type *Ty, FPClassTest Mask) {
}
}
-Value *InstCombinerImpl::SimplifyDemandedUseFPClass(
- Value *V, const FPClassTest DemandedMask, KnownFPClass &Known,
- unsigned Depth, Instruction *CxtI) {
+Value *InstCombinerImpl::SimplifyDemandedUseFPClass(Value *V,
----------------
dtcxzyw wrote:
It is needed by `DemandedMask &= ~fcNan;`.
https://github.com/llvm/llvm-project/pull/137287
More information about the llvm-commits
mailing list