llvm-project/llvm/lib
Sanjay Patel a194b2d2ff [InstCombine] fold fneg into constant operand of fmul/fdiv
This accounts for the missing IR fold noted in D50195. We don't need any fast-math to enable the negation transform. 
FP negation can always be folded into an fmul/fdiv constant to eliminate the fneg.

I've limited this to one-use to ensure that we are eliminating an instruction rather than replacing fneg by a 
potentially expensive fdiv or fmul.

Differential Revision: https://reviews.llvm.org/D50417

llvm-svn: 339248
2018-08-08 14:29:08 +00:00
..
Analysis [InstSimplify] fold fsub+fadd with common operand 2018-08-07 20:32:55 +00:00
AsmParser [DEBUGINFO] Disable emission of the dwarf sections, but allow directives. 2018-08-01 19:38:20 +00:00
BinaryFormat [dwarfdump] Add pretty printer for accelerator table based on Atom. 2018-07-13 17:21:51 +00:00
Bitcode [NFC] Fix typo 2018-08-06 05:03:21 +00:00
CodeGen [TargetLowering] Remove APInt divisor argument from BuildExactSDIV (NFCI). 2018-08-08 13:59:44 +00:00
DebugInfo [llvm-pdbutil] Support PDBs without a DBI stream 2018-08-06 19:35:00 +00:00
Demangle [MS Demangler] Properly handle backreferencing of special names. 2018-08-08 00:43:31 +00:00
ExecutionEngine [ORC] Remove an incorrect use of 'cantFail'. 2018-08-05 23:55:35 +00:00
FuzzMutate Remove trailing space 2018-07-30 19:41:25 +00:00
Fuzzer
IR [DebugInfo] Refactor DbgInfoIntrinsic class hierarchy. 2018-08-06 03:59:47 +00:00
IRReader LLParser: add an argument for overriding data layout and do not check alloca addr space 2018-01-30 22:32:39 +00:00
LTO Remove trailing space 2018-07-30 19:41:25 +00:00
LineEditor
Linker [NFC] Remove an empty line. 2018-07-27 06:50:45 +00:00
MC MC: Redirect .addrsig directives referring to private (.L) symbols to the section symbol. 2018-08-06 21:59:58 +00:00
Object Remove trailing space 2018-07-30 19:41:25 +00:00
ObjectYAML [yaml2obj] - Add a support for changing EntSize. 2018-08-07 08:11:38 +00:00
Option Re-revert "[Option] Fix PR37006 prefix choice in findNearest" 2018-05-19 16:21:01 +00:00
Passes Revert "[GVNHoist] Re-enable GVNHoist by default" 2018-07-30 20:07:33 +00:00
ProfileData [Coverage] Ignore 'unused' functions with non-zero execution counts 2018-08-07 22:25:36 +00:00
Support Refactor FileCheck to make it usable as an API 2018-08-07 21:58:49 +00:00
TableGen Remove trailing space 2018-07-30 19:41:25 +00:00
Target [ARM] FP16: codegen support for VEXT 2018-08-08 13:26:38 +00:00
Testing [LLVMTestingSupport] Add explicit linkage to LLVMSupport 2018-04-08 06:49:17 +00:00
ToolDrivers Give llvm-lib rudimentary help output. 2018-07-14 02:29:44 +00:00
Transforms [InstCombine] fold fneg into constant operand of fmul/fdiv 2018-08-08 14:29:08 +00:00
WindowsManifest Convert line endings of lib/WindowsManifest/CMakeLists.txt to unix. 2018-04-07 04:28:08 +00:00
XRay [XRay] Improve error reporting when loading traces 2018-08-07 04:42:39 +00:00
CMakeLists.txt
LLVMBuild.txt