1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test
Sanjay Patel 160a5b1a73 [DAG] Remove redundant FMUL in Newton-Raphson SQRT code
When calculating a square root using Newton-Raphson with two constants,
a naive implementation is to use five multiplications (four muls to calculate
reciprocal square root and another one to calculate the square root itself).
However, after some reassociation and CSE the same result can be obtained
with only four multiplications. Unfortunately, there's no reliable way to do
such a reassociation in the back-end. So, the patch modifies NR code itself
so that it directly builds optimal code for SQRT and doesn't rely on any
further reassociation.

Patch by Nikolai Bozhenov!

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

llvm-svn: 272920
2016-06-16 16:58:54 +00:00
..
Analysis
Assembler
Bindings Add support for callsite in the new C API for attributes 2016-06-15 05:14:29 +00:00
Bitcode
BugPoint
CodeGen [DAG] Remove redundant FMUL in Newton-Raphson SQRT code 2016-06-16 16:58:54 +00:00
DebugInfo AArch64: allow MOV (imm) alias to be printed 2016-06-16 01:42:25 +00:00
Examples
ExecutionEngine [PATCH] Fix RuntimeDyldCOFFI386 to handle relocations with a non-zero addend 2016-06-16 16:21:41 +00:00
Feature
FileCheck
Instrumentation
Integer
JitListener
LibDriver
Linker
LTO
MC Remove redundant -mattr options from llvm-objdump commands. 2016-06-16 15:47:19 +00:00
Object Remove redundant -mattr options from llvm-objdump commands. 2016-06-16 15:47:19 +00:00
ObjectYAML
Other Statistic: Add machine parseable json output 2016-06-15 20:19:16 +00:00
SymbolRewriter
TableGen
ThinLTO/X86
tools Fix llvm-objdump when disassembling a stripped Mach-O binary with the -macho option. 2016-06-15 21:14:01 +00:00
Transforms [LLE] New test to check that no versioning for symbolic strides occurs. NFC 2016-06-16 16:45:29 +00:00
Unit
Verifier Verifier: check that functions have at most a single !prof attachment. 2016-06-14 23:13:15 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh