Modernize comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2011-07-15 21:42:20 +00:00
parent 5232cc675c
commit 6a109f9d70

View File

@ -103,9 +103,8 @@ public:
void LegalizeDAG(); void LegalizeDAG();
private: private:
/// LegalizeOp - We know that the specified value has a legal type. /// LegalizeOp - Return a legal replacement for the given operation, with
/// Recursively ensure that the operands have legal types, then return the /// all legal operands.
/// result.
SDValue LegalizeOp(SDValue O); SDValue LegalizeOp(SDValue O);
SDValue OptimizeFloatStore(StoreSDNode *ST); SDValue OptimizeFloatStore(StoreSDNode *ST);
@ -794,10 +793,8 @@ SDValue SelectionDAGLegalize::OptimizeFloatStore(StoreSDNode* ST) {
return SDValue(0, 0); return SDValue(0, 0);
} }
/// LegalizeOp - We know that the specified value has a legal type, and /// LegalizeOp - Return a legal replacement for the given operation, with
/// that its operands are legal. Now ensure that the operation itself /// all legal operands.
/// is legal, recursively ensuring that the operands' operations remain
/// legal.
SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) { SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
if (Op.getOpcode() == ISD::TargetConstant) // Allow illegal target nodes. if (Op.getOpcode() == ISD::TargetConstant) // Allow illegal target nodes.
return Op; return Op;