Don't try to constant fold libm functions with non-finite arguments.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 27 Sep 2010 21:29:20 +0000 (21:29 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 27 Sep 2010 21:29:20 +0000 (21:29 +0000)
commit1f386c4ce1983c448320aecca8d3cd27d1497867
tree7e479dcf8dd92df64b3c5faafea45edb94fee80e
parent376ce97baca2bcf97ab420313a876214cde7f9df
Don't try to constant fold libm functions with non-finite arguments.

Usually we wouldn't do this anyway because llvm_fenv_testexcept would return an
exception, but we have seen some cases where neither errno nor fenv detect an
exception on arm-linux.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114893 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/fold-calls.ll