1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 22:42:46 +02:00
llvm-mirror/test
Jingyue Wu 41c8aefa76 SelectionDAG: Prefer to combine multiplication with less uses for fma
Summary:
For example:

  s6 = s0*s5;
  s2 = s6*s6 + s6;
  ...
  s4 = s6*s3;

We notice that it is possible for s2 is folded to fma (s0, s5, fmul (s6 s6)).
This only happens when Aggressive is true, otherwise hasOneUse() check
already prevents from folding the multiplication with more uses.

Test Plan: test/CodeGen/NVPTX/fma-assoc.ll

Patch by Xuetian Weng

Reviewers: hfinkel, apazos, jingyue, ohsallen, arsenm

Subscribers: arsenm, jholewinski, llvm-commits

Differential Revision: http://reviews.llvm.org/D11855

llvm-svn: 244649
2015-08-11 19:21:46 +00:00
..
Analysis [GMR] Be a bit smarter about which globals don't alias when doing recursive lookups 2015-08-11 08:06:44 +00:00
Assembler DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
Bindings [OCaml] Do not use -warn-error in tests. 2015-07-17 17:33:23 +00:00
Bitcode [compatibility.ll] Cover explicitly named comdats. 2015-08-06 22:04:21 +00:00
BugPoint Fix typo in comment 2015-07-26 11:37:05 +00:00
CodeGen SelectionDAG: Prefer to combine multiplication with less uses for fma 2015-08-11 19:21:46 +00:00
DebugInfo Fix a bunch of trivial cases of 'CHECK[^:]*$' in the tests. NFCI 2015-08-10 19:01:27 +00:00
ExecutionEngine [RuntimeDyld][AArch64] Add explicit addends before calling relocationValueRef. 2015-08-11 06:27:53 +00:00
Feature [IR] Verify EH pad predecessors 2015-08-11 02:48:30 +00:00
FileCheck
Instrumentation [libFuzzer] don't crash if the condition in a switch has unusual type (e.g. i72) 2015-08-11 00:24:39 +00:00
Integer
JitListener DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
LibDriver Add support for producing thin archives in llvm-lib. 2015-07-17 16:01:11 +00:00
Linker Linker: Fix references to uniqued nodes after r243883 2015-08-04 06:42:31 +00:00
LTO
MC [X86] Add SAL mnemonics for Intel syntax 2015-08-11 12:05:06 +00:00
Object Add a test showing that objdump (and so ObjectFIle) can handle shndx. 2015-08-10 21:00:15 +00:00
Other Update test suite to make "ninja check" succeed without native backend builtin 2015-08-04 06:32:54 +00:00
SymbolRewriter
TableGen TableGen: Support folding casts from bits to int 2015-07-31 01:12:06 +00:00
tools Enable five passing dsymutil tests on Windows. 2015-08-11 06:05:27 +00:00
Transforms [LowerSwitch] Fix a bug when LowerSwitch deletes the default block 2015-08-11 18:12:26 +00:00
Unit
Verifier DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg Improve lit "native" feature to check if the native backend is builtin 2015-08-04 06:32:31 +00:00
lit.site.cfg.in Improve lit "native" feature to check if the native backend is builtin 2015-08-04 06:32:31 +00:00
Makefile
Makefile.tests
TestRunner.sh