llvm-mirror/test
Dan Gohman a6e5948fce Don't create ISD::FNEG nodes after legalize if they aren't legal.
Simplify x+0 to x in unsafe-fp-math mode. This avoids a bunch of
redundant work in many cases, because in unsafe-fp-math mode,
ISD::FADD with a constant is considered free to negate, so the
DAGCombiner often negates x+0 to -0-x thinking it's free, when
in reality the end result is -x, which is more expensive than x.

Also, combine x*0 to 0.

This fixes PR3374.

llvm-svn: 62789
2009-01-22 21:58:43 +00:00
..
Analysis Wind SCEV back in time, to Nov 18th. This 'fixes' PR3275, PR3294, PR3295, 2009-01-13 09:18:58 +00:00
Archive
Assembler Add the private linkage. 2009-01-15 20:18:42 +00:00
Bindings/Ocaml [PR2886] Ignore stderr from ocamlc since it prints unresolvable warnings on some platforms. 2008-10-22 12:41:54 +00:00
Bitcode
BugPoint
CodeGen Don't create ISD::FNEG nodes after legalize if they aren't legal. 2009-01-22 21:58:43 +00:00
DebugInfo Do not use buggy llvm-gcc to generate testcases. 2009-01-22 18:28:11 +00:00
ExecutionEngine Port this test from dejagnu to unit testing. 2009-01-19 18:08:33 +00:00
Feature Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
FrontendAda
FrontendC This was causing invalid memory accesses when 2009-01-21 11:51:17 +00:00
FrontendC++ Remove no-longer relevant comment. Pointed out 2009-01-22 15:37:29 +00:00
FrontendFortran Testcase for recent llvm-gcc fix 2008-11-03 14:43:31 +00:00
FrontendObjC Add test for rdar://6394879. 2008-11-26 02:21:12 +00:00
FrontendObjC++
Integer alignment of 0 is not valid. 2009-01-05 08:14:35 +00:00
lib Fix make check on Solaris 10/x86: the default grep is not GNU grep, same for as. 2008-10-21 17:21:32 +00:00
Linker Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
LLVMC Allow hooks with arguments. 2009-01-21 13:04:00 +00:00
Other
Scripts
TableGen Fun x86 encoding tricks: when adding an immediate value of 128, 2008-10-17 01:33:43 +00:00
Transforms fix a testcase. 2009-01-22 07:08:58 +00:00
Verifier Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
Makefile * Quoted the executable 'runtest' to emphasize the binary needed; 2009-01-01 20:26:05 +00:00
Makefile.tests
TestRunner.sh