Fix the comment for LegalizeOp to more accurately reflect what it does.
authorDan Gohman <gohman@apple.com>
Fri, 13 Jul 2007 20:14:11 +0000 (20:14 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Jul 2007 20:14:11 +0000 (20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39827 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 63f58c20968f5bf7c93d6ee6e5708f4cf9e4363c..a5146bd45290b7d8af4534cee3b6f2509578e57e 100644 (file)
@@ -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!");