[llvm-commits] [llvm] r42991 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp

Chris Lattner sabre at nondot.org
Mon Oct 15 09:46:29 PDT 2007


Author: lattner
Date: Mon Oct 15 11:46:29 2007
New Revision: 42991

URL: http://llvm.org/viewvc/llvm-project?rev=42991&view=rev
Log:
updates from duncan

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp?rev=42991&r1=42990&r2=42991&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp Mon Oct 15 11:46:29 2007
@@ -55,9 +55,9 @@
   };
   
   enum LegalizeAction {
-    Legal,      // The target natively supports this operation.
-    Promote,    // This operation should be executed in a larger type.
-    Expand      // Try to expand this to other ops, otherwise use a libcall.
+    Legal,      // The target natively supports this type.
+    Promote,    // This type should be executed in a larger type.
+    Expand      // This type should be split into two types of half the size.
   };
   
   /// ValueTypeActions - This is a bitvector that contains two bits for each
@@ -244,7 +244,7 @@
       }
     }
 
-    // If the node needs revisitation, don't add all users to the worklist etc.
+    // If the node needs revisiting, don't add all users to the worklist etc.
     if (NeedsRevisit)
       continue;
     
@@ -328,7 +328,7 @@
   // Okay, we know that this node is new.  Recursively walk all of its operands
   // to see if they are new also.  The depth of this walk is bounded by the size
   // of the new tree that was constructed (usually 2-3 nodes), so we don't worry
-  // about revisitation of nodes.
+  // about revisitating of nodes.
   //
   // As we walk the operands, keep track of the number of nodes that are
   // processed.  If non-zero, this will become the new nodeid of this node.





More information about the llvm-commits mailing list