]> granicus.if.org Git - llvm/commit
DCE math library calls with a constant operand.
authorEli Friedman <efriedma@codeaurora.org>
Wed, 2 Nov 2016 20:48:11 +0000 (20:48 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Wed, 2 Nov 2016 20:48:11 +0000 (20:48 +0000)
commita7bfb15b266f14ccb12044db11638a653dd3bdde
tree1877fb2ed204e6061112c656196275c9c8547246
parentf13ebed41c2f7a0b962f2b85547e42cf4ad52b40
DCE math library calls with a constant operand.

On platforms which use -fmath-errno, math libcalls without any uses
require some extra checks to figure out if they are actually dead.

Fixes https://llvm.org/bugs/show_bug.cgi?id=30464 .

Differential Revision: https://reviews.llvm.org/D25970

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285857 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ConstantFolding.h
lib/Analysis/ConstantFolding.cpp
lib/Transforms/Utils/Local.cpp
test/Transforms/DCE/calls-errno.ll [new file with mode: 0644]