[llvm-commits] [llvm] r74976 - in /llvm/trunk/lib/Target/ARM: ARMCodeEmitter.cpp README-Thumb2.txt

Evan Cheng evan.cheng at apple.com
Tue Jul 7 17:05:05 PDT 2009


Author: evancheng
Date: Tue Jul  7 19:05:05 2009
New Revision: 74976

URL: http://llvm.org/viewvc/llvm-project?rev=74976&view=rev
Log:
Add a todo.

Added:
    llvm/trunk/lib/Target/ARM/README-Thumb2.txt
Modified:
    llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp

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

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp Tue Jul  7 19:05:05 2009
@@ -1165,7 +1165,8 @@
     emitDataProcessingInstruction(MI, ARM::PC);
 
     // Then emit the inline jump table.
-    unsigned JTIndex = (TID.Opcode == ARM::BR_JTr || TID.Opcode == ARM::t2BR_JTr)
+    unsigned JTIndex =
+      (TID.Opcode == ARM::BR_JTr || TID.Opcode == ARM::t2BR_JTr)
       ? MI.getOperand(1).getIndex() : MI.getOperand(2).getIndex();
     emitInlineJumpTable(JTIndex);
     return;

Added: llvm/trunk/lib/Target/ARM/README-Thumb2.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/README-Thumb2.txt?rev=74976&view=auto

==============================================================================
--- llvm/trunk/lib/Target/ARM/README-Thumb2.txt (added)
+++ llvm/trunk/lib/Target/ARM/README-Thumb2.txt Tue Jul  7 19:05:05 2009
@@ -0,0 +1,7 @@
+//===---------------------------------------------------------------------===//
+// Random ideas for the ARM backend (Thumb2 specific).
+//===---------------------------------------------------------------------===//
+
+* We should model IT instructions explicitly. We should introduce them (even if
+  if-converter is not run, the function could still contain movcc's) before
+  PEI since passes starting from PEI may require exact code size.





More information about the llvm-commits mailing list