Skip to content

Commit 941fbc7

Browse files
committed
Mention NaN as an example
1 parent d755610 commit 941fbc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/Analysis/ConstantFolding.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
6969
/// form.
7070
///
7171
/// In some cases, constant folding may return one value chosen from a set of
72-
/// multiple legal return values. Using such a result is usually only valid if
72+
/// multiple legal return values. For example, the exact bit pattern of NaN
73+
/// results is not guaranteed. Using such a result is usually only valid if
7374
/// all uses of the original operation are replaced by the constant-folded
7475
/// result. The \p AllowNonDeterministic parameter controls whether this is
7576
/// allowed.

0 commit comments

Comments
 (0)