[llvm-commits] CVS: llvm/lib/Target/ARM/ARMInstrInfo.td

Evan Cheng evan.cheng at apple.com
Wed May 16 00:48:03 PDT 2007



Changes in directory llvm/lib/Target/ARM:

ARMInstrInfo.td updated: 1.101 -> 1.102
---
Log message:

Conditional branch is not a barrier.

---
Diffs of the changes:  (+6 -4)

 ARMInstrInfo.td |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/ARM/ARMInstrInfo.td
diff -u llvm/lib/Target/ARM/ARMInstrInfo.td:1.101 llvm/lib/Target/ARM/ARMInstrInfo.td:1.102
--- llvm/lib/Target/ARM/ARMInstrInfo.td:1.101	Mon May 14 20:29:07 2007
+++ llvm/lib/Target/ARM/ARMInstrInfo.td	Wed May 16 02:45:54 2007
@@ -590,14 +590,12 @@
   }
 }
 
-let isBranch = 1, isTerminator = 1, noResults = 1, isBarrier = 1 in {
+let isBranch = 1, isTerminator = 1, noResults = 1 in {
   // B can changed into a Bcc, but it is not "predicated".
+  let isBarrier = 1 in {
   def B : AXI<(ops brtarget:$dst), "b $dst",
               [(br bb:$dst)]>;
 
-  def Bcc : AXI<(ops brtarget:$dst, ccop:$cc), "b$cc $dst",
-                 [(ARMbrcond bb:$dst, imm:$cc)]>;
-
   def BR_JTr : JTI<(ops GPR:$dst, jtblock_operand:$jt, i32imm:$id),
                     "mov", " pc, $dst \n$jt",
                     [(ARMbrjt GPR:$dst, tjumptable:$jt, imm:$id)]>;
@@ -609,6 +607,10 @@
                        "add", " pc, $dst, $idx \n$jt",
                        [(ARMbrjt (add GPR:$dst, GPR:$idx), tjumptable:$jt,
                          imm:$id)]>;
+  }
+
+  def Bcc : AXI<(ops brtarget:$dst, ccop:$cc), "b$cc $dst",
+                 [(ARMbrcond bb:$dst, imm:$cc)]>;
 }
 
 //===----------------------------------------------------------------------===//






More information about the llvm-commits mailing list