llvm-6502/include/llvm
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
..
ADT Don't copy a potentially-uninitialized variable. 2012-06-18 22:31:28 +00:00
Analysis Round 2 of dead private variable removal. 2012-06-06 19:47:08 +00:00
Assembly
Bitcode
CodeGen Typo. Patch by Cameron McInally <cameron.mcinally@nyu.edu>. 2012-06-19 22:28:18 +00:00
Config
DebugInfo
ExecutionEngine
MC Allow up to 64 functional units per processor itinerary. 2012-06-18 21:08:18 +00:00
Object Added accessors for getting coff_relocation info 2012-06-18 19:47:16 +00:00
Support Add support to the alignment support header for conjuring a character 2012-06-16 08:52:57 +00:00
TableGen Eliminate struct TableGenBackend. 2012-06-13 05:15:49 +00:00
Target Add DAG-combines for aggressive FMA formation. 2012-06-19 22:51:23 +00:00
Transforms
Argument.h
Attributes.h
AutoUpgrade.h
BasicBlock.h
CallGraphSCCPass.h
CallingConv.h
CMakeLists.txt
Constant.h
Constants.h When linearizing a multiplication, return at once if we see a factor of zero, 2012-06-13 09:42:13 +00:00
DefaultPasses.h
DerivedTypes.h
Function.h
GlobalAlias.h
GlobalValue.h Implement the isSafeToDiscardIfUnused predicate and use it in globalopt and 2012-06-14 22:48:13 +00:00
GlobalVariable.h
GVMaterializer.h
InitializePasses.h Sketch a LiveRegMatrix analysis pass. 2012-06-09 02:13:10 +00:00
InlineAsm.h
InstrTypes.h
Instruction.def
Instruction.h Now that Reassociate's LinearizeExprTree can look through arbitrary expression 2012-06-12 14:33:56 +00:00
Instructions.h
IntrinsicInst.h
Intrinsics.h
Intrinsics.td
IntrinsicsARM.td
IntrinsicsCellSPU.td
IntrinsicsHexagon.td
IntrinsicsNVVM.td
IntrinsicsPowerPC.td
IntrinsicsX86.td Fix intrinsics for XOP frczss/sd instructions. These instructions only take one source register and zero the upper bits of the destination rather than preserving them. 2012-06-13 07:18:53 +00:00
IntrinsicsXCore.td
LinkAllPasses.h
LinkAllVMCore.h
Linker.h
LLVMContext.h 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
Metadata.h Move the Metadata merging methods from GVN and make them public in MDNode. 2012-06-16 20:33:37 +00:00
Module.h
OperandTraits.h
Operator.h
Pass.h
PassAnalysisSupport.h
PassManager.h
PassManagers.h
PassRegistry.h
PassSupport.h
SymbolTableListTraits.h
Type.h
Use.h
User.h
Value.h
ValueSymbolTable.h