[llvm] r184008 - SelectionDAG: minor fix to order of operands in comments to match the code
Stephen Lin
stephenwlin at gmail.com
Fri Jun 14 14:33:58 PDT 2013
Author: stephenwlin
Date: Fri Jun 14 16:33:58 2013
New Revision: 184008
URL: http://llvm.org/viewvc/llvm-project?rev=184008&view=rev
Log:
SelectionDAG: minor fix to order of operands in comments to match the code
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=184008&r1=184007&r2=184008&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Jun 14 16:33:58 2013
@@ -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) &&
More information about the llvm-commits
mailing list