llvm-svn: 163049
This commit is contained in:
Michael Liao 2012-09-01 04:09:16 +00:00
parent 513c6bb88c
commit ec385012ae
1 changed files with 1 additions and 1 deletions

View File

@ -5814,7 +5814,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
N0.getOperand(0), N0.getOperand(1), N1);
}
// fold (fadd x, (fmul y, z)) -> (fma x, y, z)
// fold (fadd x, (fmul y, z)) -> (fma y, z, x)
// Note: Commutes FADD operands.
if (N1.getOpcode() == ISD::FMUL && N1->hasOneUse()) {
return DAG.getNode(ISD::FMA, N->getDebugLoc(), VT,