[llvm-commits] [llvm] r68404 - /llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp

Bob Wilson bob.wilson at apple.com
Fri Apr 3 13:53:26 PDT 2009


Author: bwilson
Date: Fri Apr  3 15:53:25 2009
New Revision: 68404

URL: http://llvm.org/viewvc/llvm-project?rev=68404&view=rev
Log:
Fix some comments.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp?rev=68404&r1=68403&r2=68404&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp Fri Apr  3 15:53:25 2009
@@ -211,7 +211,7 @@
     break;
   }
 
-  // Try spliting an indexed load / store to a un-indexed one plus an add/sub
+  // Try splitting an indexed load/store to an un-indexed one plus an add/sub
   // operation.
   unsigned MemOpc = getUnindexedOpcode(MI->getOpcode());
   if (MemOpc == 0)
@@ -401,8 +401,8 @@
     return false;
   }
 
-  // Likewise if it ends with a branch table followed by an unconditional branch.
-  // The branch folder can create these, and we must get rid of them for
+  // ...likewise if it ends with a branch table followed by an unconditional
+  // branch. The branch folder can create these, and we must get rid of them for
   // correctness of Thumb constant islands.
   if ((SecondLastOpc == ARM::BR_JTr || SecondLastOpc==ARM::BR_JTm ||
        SecondLastOpc == ARM::BR_JTadd || SecondLastOpc==ARM::tBR_JTr) &&
@@ -692,7 +692,7 @@
   default: break;
   case ARM::MOVr: {
     if (MI->getOperand(4).getReg() == ARM::CPSR)
-      // If it is updating CPSR, then it cannot be foled.
+      // If it is updating CPSR, then it cannot be folded.
       break;
     unsigned Pred = MI->getOperand(2).getImm();
     unsigned PredReg = MI->getOperand(3).getReg();
@@ -781,7 +781,7 @@
   switch (Opc) {
   default: break;
   case ARM::MOVr:
-    // If it is updating CPSR, then it cannot be foled.
+    // If it is updating CPSR, then it cannot be folded.
     return MI->getOperand(4).getReg() != ARM::CPSR;
   case ARM::tMOVr: {
     if (OpNum == 0) { // move -> store





More information about the llvm-commits mailing list