Index: lib/CodeGen/SelectionDAG/SelectionDAG.cpp =================================================================== --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3593,6 +3593,8 @@ V1.fusedMultiplyAdd(V2, V3, APFloat::rmNearestTiesToEven); if (s != APFloat::opInvalidOp) return getConstantFP(V1, VT); + else // Bail out now to allow the target to try its own cst folding + return SDValue(); } break; }