diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-02-20 22:10:33 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-02-20 22:10:33 +0000 |
| commit | 0dc54c4dee349232b466d0e649834dde5d1b972a (patch) | |
| tree | 7bffdcf9144cd82ba94a1a2436e49008c9230258 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
| parent | 2c64aef35fc880d608dc5fc6e3a850d69caedfd6 (diff) | |
| download | bcm5719-llvm-0dc54c4dee349232b466d0e649834dde5d1b972a.tar.gz bcm5719-llvm-0dc54c4dee349232b466d0e649834dde5d1b972a.zip | |
Add generic fmad DAG node.
This allows sharing of FMA forming combines to work
with instructions that have the same semantics as a separate
multiply and add.
This is expand by default, and only formed post legalization
so it shouldn't have much impact on targets that do not want it.
llvm-svn: 230070
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 630c3313772..459969b58b9 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -765,6 +765,7 @@ void TargetLoweringBase::initActions() { setOperationAction(ISD::CONCAT_VECTORS, VT, Expand); setOperationAction(ISD::FMINNUM, VT, Expand); setOperationAction(ISD::FMAXNUM, VT, Expand); + setOperationAction(ISD::FMAD, VT, Expand); // These library functions default to expand. setOperationAction(ISD::FROUND, VT, Expand); |

