[llvm] [ConstantFolding] Constant fold nextafter and nexttoward (PR #168794)
Sayan Sivakumaran via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 8 18:26:20 PST 2026
================
@@ -3174,6 +3176,57 @@ static Constant *evaluateCompare(const APFloat &Op1, const APFloat &Op2,
return nullptr;
}
+/// Returns the first NaN in the operand list if it exists, preserving the NaN
+/// payload if possible. Returns nullptr if no NaNs are in the list.
+static Constant *TryConstantFoldNaN(ArrayRef<APFloat> Operands,
----------------
sivakusayan wrote:
Function is removed
https://github.com/llvm/llvm-project/pull/168794
More information about the llvm-commits
mailing list