SelectionDAG: minor fix to order of operands in comments to match the code
authorStephen Lin <stephenwlin@gmail.com>
Fri, 14 Jun 2013 21:33:58 +0000 (21:33 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Fri, 14 Jun 2013 21:33:58 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184008 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 570ea4c0cbf4674394bac7f6c337a192e0c5e4d8..872f3fb935b421cf70598a9c679afe71870f83d9 100644 (file)
@@ -6008,7 +6008,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
 
     if (N0.getOpcode() == ISD::FADD && AllowNewFpConst) {
       ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(N0.getOperand(0));
-      // (fadd (fadd x, x), x) -> (fmul 3.0, x)
+      // (fadd (fadd x, x), x) -> (fmul x, 3.0)
       if (!CFP && N0.getOperand(0) == N0.getOperand(1) &&
           (N0.getOperand(0) == N1)) {
         return DAG.getNode(ISD::FMUL, SDLoc(N), VT,
@@ -6018,7 +6018,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
 
     if (N1.getOpcode() == ISD::FADD && AllowNewFpConst) {
       ConstantFPSDNode *CFP10 = dyn_cast<ConstantFPSDNode>(N1.getOperand(0));
-      // (fadd x, (fadd x, x)) -> (fmul 3.0, x)
+      // (fadd x, (fadd x, x)) -> (fmul x, 3.0)
       if (!CFP10 && N1.getOperand(0) == N1.getOperand(1) &&
           N1.getOperand(0) == N0) {
         return DAG.getNode(ISD::FMUL, SDLoc(N), VT,
@@ -6026,7 +6026,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
       }
     }
 
-    // (fadd (fadd x, x), (fadd x, x)) -> (fmul 4.0, x)
+    // (fadd (fadd x, x), (fadd x, x)) -> (fmul x, 4.0)
     if (AllowNewFpConst &&
         N0.getOpcode() == ISD::FADD && N1.getOpcode() == ISD::FADD &&
         N0.getOperand(0) == N0.getOperand(1) &&