Tweak some comments.
authorDuncan Sands <baldrick@free.fr>
Mon, 10 Nov 2008 17:31:56 +0000 (17:31 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 10 Nov 2008 17:31:56 +0000 (17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58993 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp

index 67af365d96f18a63434905cd2b82bf2e3d5d6a47..b2c668b7a83f4973cea8cc33b8042cf22781d1f0 100644 (file)
@@ -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:
index 0a62956ad75b3a0a89f1c5343173c86297fe51b4..22e5b82516991b656560da16fd8da85ba1b9ebf0 100644 (file)
@@ -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)));