[InstSimplify] fold X +nnan Inf
authorSanjay Patel <spatel@rotateright.com>
Thu, 10 Nov 2022 22:10:46 +0000 (17:10 -0500)
committerSanjay Patel <spatel@rotateright.com>
Thu, 10 Nov 2022 22:13:26 +0000 (17:13 -0500)
commitfbc2c8f2fbbb7fbc9a88ad64ac83de888d505d27
treed37df0604ba4a877ef4f61b5f48334ee2448eceb
parent58167f67dc813e09ebd06e09a79f6ec2b8773ce3
[InstSimplify] fold X +nnan Inf

If we exclude NaN (and therefore the opposite Inf),
anything plus Inf is Inf:
https://alive2.llvm.org/ce/z/og3dj9
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll