aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-10 16:50:32 +0000
committerDan Gohman <gohman@apple.com>2009-08-10 16:50:32 +0000
commitc1a090ff401564c2b00b3a5f4942fecf03cc16fe (patch)
tree60252a0d8fb8a31212a63b371c075b87ab9f7818 /lib
parentb2fceb998b82134d13a1847c168b46192c0de594 (diff)
downloadexternal_llvm-c1a090ff401564c2b00b3a5f4942fecf03cc16fe.zip
external_llvm-c1a090ff401564c2b00b3a5f4942fecf03cc16fe.tar.gz
external_llvm-c1a090ff401564c2b00b3a5f4942fecf03cc16fe.tar.bz2
Make this comment more closely reflect the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 7dec304..6446ed9 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -4061,7 +4061,7 @@ SDValue DAGCombiner::visitFMUL(SDNode *N) {
// fold (fmul X, 2.0) -> (fadd X, X)
if (N1CFP && N1CFP->isExactlyValue(+2.0))
return DAG.getNode(ISD::FADD, N->getDebugLoc(), VT, N0, N0);
- // fold (fmul X, (fneg 1.0)) -> (fneg X)
+ // fold (fmul X, -1.0) -> (fneg X)
if (N1CFP && N1CFP->isExactlyValue(-1.0))
if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT))
return DAG.getNode(ISD::FNEG, N->getDebugLoc(), VT, N0);