diff options
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
| -rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 9237833a2cd0..10e19f92b4a6 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -35520,7 +35520,7 @@ static SDValue combineFneg(SDNode *N, SelectionDAG &DAG,    // If we're negating an FMA node, then we can adjust the    // instruction to include the extra negation.    unsigned NewOpcode = 0; -  if (Arg.hasOneUse()) { +  if (Arg.hasOneUse() && Subtarget.hasAnyFMA()) {      switch (Arg.getOpcode()) {      case ISD::FMA:             NewOpcode = X86ISD::FNMSUB;       break;      case X86ISD::FMSUB:        NewOpcode = X86ISD::FNMADD;       break; | 
