1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/lib
Sanjay Patel 9ac7e74796 [LibCallSimplifier] use instruction-level fast-math-flags to transform sqrt calls
This is a continuation of adding FMF to call instructions:
http://reviews.llvm.org/rL255555

The intent of the patch is to preserve the current behavior of the transform except
that we use the sqrt instruction's 'fast' attribute as a trigger rather than the
function-level attribute.

But this raises a bug noted by the new FIXME comment.

In order to do this transform:
sqrt((x * x) * y) ---> fabs(x) * sqrt(y)

...we need all of the sqrt, the first fmul, and the second fmul to be 'fast'. 
If any of those ops is strict, we should bail out.

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

llvm-svn: 257400
2016-01-11 22:34:19 +00:00
..
Analysis getParent()->getParent() == getFunction() and clang-format ; NFC 2016-01-11 22:24:35 +00:00
AsmParser
Bitcode
CodeGen [NFC] Fix whitespace. 2016-01-11 19:17:36 +00:00
DebugInfo fixing type. 2016-01-09 00:31:56 +00:00
ExecutionEngine [LLI] Replace the LLI remote-JIT support with the new ORC remote-JIT components. 2016-01-11 16:35:55 +00:00
Fuzzer [libFuzzer] debug prints in tracing 2016-01-09 03:46:08 +00:00
IR Split resolveCycles(bool AllowTemps) into two interfaces and document 2016-01-11 21:37:41 +00:00
IRReader
LibDriver
LineEditor
Linker [ThinLTO] Use new in-place symbol changes for exporting module 2016-01-08 17:06:29 +00:00
LTO [attrs] Split the late-revisit pattern for deducing norecurse in 2016-01-08 10:55:52 +00:00
MC Added support for macro emission in dwarf (supporting DWARF version 4). 2016-01-07 14:28:20 +00:00
Object
Option
Passes
ProfileData Move coveragemap_error enum into coverage namespace and InstrProf.h /NFC 2016-01-10 21:56:33 +00:00
Support Revert "[Windows] Simplify assertion code. NFC." 2016-01-11 21:07:48 +00:00
TableGen
Target [WebAssembly] Reorganize address offset folding. 2016-01-11 22:05:44 +00:00
Transforms [LibCallSimplifier] use instruction-level fast-math-flags to transform sqrt calls 2016-01-11 22:34:19 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile