diff options
author | Duncan Sands <baldrick@free.fr> | 2008-11-10 17:31:56 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-11-10 17:31:56 +0000 |
commit | 13b2e3634bd7e0b4e7d20a94323cd9d4c70b6776 (patch) | |
tree | 2e273391c2c3b98a408ca7e19f4b9b98754dc1e6 /llvm/lib | |
parent | 7da4b44dd1b4aceef914eae3947be11d5566c38e (diff) | |
download | bcm5719-llvm-13b2e3634bd7e0b4e7d20a94323cd9d4c70b6776.tar.gz bcm5719-llvm-13b2e3634bd7e0b4e7d20a94323cd9d4c70b6776.zip |
Tweak some comments.
llvm-svn: 58993
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 67af365d96f..b2c668b7a83 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -642,10 +642,9 @@ void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, NewLHS = GetPromotedInteger(NewLHS); NewRHS = GetPromotedInteger(NewRHS); - // Otherwise, we have to insert explicit sign or zero extends. Note - // that we could insert sign extends for ALL conditions, but zero extend - // is cheaper on many machines (an AND instead of two shifts), so prefer - // it. + // We have to insert explicit sign or zero extends. Note that we could + // insert sign extends for ALL conditions, but zero extend is cheaper on + // many machines (an AND instead of two shifts), so prefer it. switch (CCCode) { default: assert(0 && "Unknown integer comparison!"); case ISD::SETEQ: diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp index 0a62956ad75..22e5b825169 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp @@ -303,7 +303,7 @@ void DAGTypeLegalizer::SplitRes_MERGE_VALUES(SDNode *N, // first illegal one needs to be expanded into Lo/Hi. unsigned i; - // The string of legal results gets turns into the input operands, which have + // The string of legal results gets turned into input operands, which have // the same type. for (i = 0; isTypeLegal(N->getValueType(i)); ++i) ReplaceValueWith(SDValue(N, i), SDValue(N->getOperand(i))); |