Use ConstantFoldFP for folding all unary floating-point operations which may
authorDan Gohman <gohman@apple.com>
Mon, 16 Jul 2007 15:26:22 +0000 (15:26 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 16 Jul 2007 15:26:22 +0000 (15:26 +0000)
commit384152444d22d356f7b4090a158da4cbc1f79464
tree34177034eb827fd34fddfd428e6577d804858937
parentd6257fe581585f5061d1c672d2110c0cd26aa257
Use ConstantFoldFP for folding all unary floating-point operations which may
have an error, and refector out the code for binary operators into
ConstantFoldBinaryFP and use it for all binary floating-point operations
which may have an error. These functions still rely exclusively on errno
to detect errors though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp