I'm pretty sure that ba is branch always, which is a barrier. Brg should
authorChris Lattner <sabre@nondot.org>
Sat, 31 Jul 2004 02:24:37 +0000 (02:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 Jul 2004 02:24:37 +0000 (02:24 +0000)
check this :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15357 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.td
lib/Target/SparcV8/SparcV8InstrInfo.td

index fa088e1d924b4963c64008b0ab354ea64ac00e66..07491eb1c10e8d5344c4a555c96655d74f1aabe2 100644 (file)
@@ -149,7 +149,9 @@ class BranchV8<bits<4> cc, string nm> : F2_2<cc, 0b010, nm> {
   let isBranch = 1;
   let isTerminator = 1;
 }
-def BA   : BranchV8<0b1000, "ba">;
+
+let isBarrier = 1 in
+  def BA   : BranchV8<0b1000, "ba">;
 def BN   : BranchV8<0b0000, "bn">;
 def BNE  : BranchV8<0b1001, "bne">;
 def BE   : BranchV8<0b0001, "be">;
index fa088e1d924b4963c64008b0ab354ea64ac00e66..07491eb1c10e8d5344c4a555c96655d74f1aabe2 100644 (file)
@@ -149,7 +149,9 @@ class BranchV8<bits<4> cc, string nm> : F2_2<cc, 0b010, nm> {
   let isBranch = 1;
   let isTerminator = 1;
 }
-def BA   : BranchV8<0b1000, "ba">;
+
+let isBarrier = 1 in
+  def BA   : BranchV8<0b1000, "ba">;
 def BN   : BranchV8<0b0000, "bn">;
 def BNE  : BranchV8<0b1001, "bne">;
 def BE   : BranchV8<0b0001, "be">;