Add a todo.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 8 Jul 2009 00:05:05 +0000 (00:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 8 Jul 2009 00:05:05 +0000 (00:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74976 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/README-Thumb2.txt [new file with mode: 0644]

index c10f2dfb641ca27bb35670cd204e5b6313856e44..da7e85e5d069bde503e314956d7cc8cb79f7a6ce 100644 (file)
@@ -1165,7 +1165,8 @@ void Emitter<CodeEmitter>::emitMiscBranchInstruction(const MachineInstr &MI) {
     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;
diff --git a/lib/Target/ARM/README-Thumb2.txt b/lib/Target/ARM/README-Thumb2.txt
new file mode 100644 (file)
index 0000000..810490b
--- /dev/null
@@ -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.