diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-06-14 21:33:58 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-06-14 21:33:58 +0000 |
commit | 4e69d01b678a85b45245ecb4724177082013d236 (patch) | |
tree | fe72dadc257832ca40c74161a8d5932034f9c8d4 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | ddee9a91a2a3f640d49c1125034bd68a4667b841 (diff) | |
download | bcm5719-llvm-4e69d01b678a85b45245ecb4724177082013d236.tar.gz bcm5719-llvm-4e69d01b678a85b45245ecb4724177082013d236.zip |
SelectionDAG: minor fix to order of operands in comments to match the code
llvm-svn: 184008
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 570ea4c0cbf..872f3fb935b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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) && |