llvm-6502/lib
Lang Hames d693cafcfb Add DAG-combines for aggressive FMA formation.
This patch adds DAG combines to form FMAs from pairs of FADD + FMUL or
FSUB + FMUL. The combines are performed when:
(a) Either
      AllowExcessFPPrecision option (-enable-excess-fp-precision for llc)
        OR
      UnsafeFPMath option (-enable-unsafe-fp-math)
    are set, and
(b) TargetLoweringInfo::isFMAFasterThanMulAndAdd(VT) is true for the type of
    the FADD/FSUB, and
(c) The FMUL only has one user (the FADD/FSUB).

If your target has fast FMA instructions you can make use of these combines by
overriding TargetLoweringInfo::isFMAFasterThanMulAndAdd(VT) to return true for
types supported by your FMA instruction, and adding patterns to match ISD::FMA
to your FMA instructions.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158757 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-19 22:51:23 +00:00
..
Analysis
Archive
AsmParser
Bitcode
CodeGen Add DAG-combines for aggressive FMA formation. 2012-06-19 22:51:23 +00:00
DebugInfo
ExecutionEngine Disable the right instance of TheJIT, this one is only used in asserts. 2012-06-16 21:55:52 +00:00
Linker
MC Implement irpc. Extracted from a patch by the PaX team. I just added the test. 2012-06-16 18:03:25 +00:00
Object Added accessors for getting coff_relocation info 2012-06-18 19:47:16 +00:00
Support Fix PR13148, an inf-loop in StringMap. 2012-06-19 17:40:35 +00:00
TableGen Emit TableGen's header comment with C-style comments, so it can be used from C89 code. 2012-06-19 17:04:16 +00:00
Target Add DAG-combines for aggressive FMA formation. 2012-06-19 22:51:23 +00:00
Transforms Now that SROA can form alloca's for dynamic vector accesses, further improve it to be able to replace operations on these vector alloca's with insert/extract element insts 2012-06-17 03:58:26 +00:00
VMCore revert r158660, since Chris has some issues with this patch (namely using code to reprent information only used by the compiler) 2012-06-18 23:34:26 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile