diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-13 20:14:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-13 20:14:11 +0000 |
commit | a346615d11f0a560c6e7280c1e614301d9f93051 (patch) | |
tree | f41ec1f21994fac26462b7f35d09c97cbc09dd04 | |
parent | 744ff41e0e209340e7ede098338ab034199e7c06 (diff) |
Fix the comment for LegalizeOp to more accurately reflect what it does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39827 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 63f58c2096..a5146bd452 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -551,9 +551,10 @@ SDOperand ExpandFCOPYSIGNToBitwiseOps(SDNode *Node, MVT::ValueType NVT, } -/// LegalizeOp - We know that the specified value has a legal type. -/// Recursively ensure that the operands have legal types, then return the -/// result. +/// LegalizeOp - We know that the specified value has a legal type, and +/// that its operands are legal. Now ensure that the operation itself +/// is legal, recursively ensuring that the operands' operations remain +/// legal. SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { assert(isTypeLegal(Op.getValueType()) && "Caller should expand or promote operands that are not legal!"); |