diff options
author | Pete Cooper <peter_cooper@apple.com> | 2012-06-24 00:05:44 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2012-06-24 00:05:44 +0000 |
commit | b49998d76cb4e414d13d60116adf13b085d85dc1 (patch) | |
tree | 817fc01645fda808cf087c7951c556ad64b6301d /lib/Target | |
parent | c82b9a51a2a8516ca3426d8494050301f8f73fcc (diff) | |
download | external_llvm-b49998d76cb4e414d13d60116adf13b085d85dc1.zip external_llvm-b49998d76cb4e414d13d60116adf13b085d85dc1.tar.gz external_llvm-b49998d76cb4e414d13d60116adf13b085d85dc1.tar.bz2 |
DAG legalisation can now handle illegal fma vector types by scalarisation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 4426f30..35366ce 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -715,6 +715,7 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM) setOperationAction(ISD::FSUB, (MVT::SimpleValueType)VT, Expand); setOperationAction(ISD::MUL , (MVT::SimpleValueType)VT, Expand); setOperationAction(ISD::FMUL, (MVT::SimpleValueType)VT, Expand); + setOperationAction(ISD::FMA, (MVT::SimpleValueType)VT, Custom); setOperationAction(ISD::SDIV, (MVT::SimpleValueType)VT, Expand); setOperationAction(ISD::UDIV, (MVT::SimpleValueType)VT, Expand); setOperationAction(ISD::FDIV, (MVT::SimpleValueType)VT, Expand); @@ -10893,6 +10894,7 @@ SDValue X86TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const { case ISD::SUBE: return LowerADDC_ADDE_SUBC_SUBE(Op, DAG); case ISD::ADD: return LowerADD(Op, DAG); case ISD::SUB: return LowerSUB(Op, DAG); + case ISD::FMA: return SDValue(); } } |