NAKAMURA Takumi
b4eef1fa4a
llvm/test/Transforms/DCE/calls-errno.ll: Suppress checking @pow(+0,-1).
...
It depends on host's pow(3), and mingw's pow doesn't raise any errors, just returns +INF.
llvm-svn: 286005
2016-11-04 18:50:45 +00:00
Eli Friedman
b6befc3bc4
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
llvm-svn: 285857
2016-11-02 20:48:11 +00:00
Sanjoy Das
107aefc2fc
Mark guards on true as "trivially dead"
...
This moves some logic added to EarlyCSE in rL268120 into
`llvm::isInstructionTriviallyDead`. Adds a test case for DCE to
demonstrate that passes other than EarlyCSE can now pick up on the new
information.
llvm-svn: 268126
2016-04-29 22:23:16 +00:00
Justin Bogner
395c2127ed
PM: Port DCE to the new pass manager
...
Also add a very basic test, since apparently there aren't any tests
for DCE whatsoever to add the new pass version to.
llvm-svn: 267196
2016-04-22 19:40:41 +00:00