From 0f6eab32d0b8880cde65a755e33e2c3a0b7d4ff6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 31 Jul 2004 02:24:37 +0000 Subject: [PATCH] I'm pretty sure that ba is branch always, which is a barrier. Brg should check this :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15357 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcInstrInfo.td | 4 +++- lib/Target/SparcV8/SparcV8InstrInfo.td | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index fa088e1d924..07491eb1c10 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -149,7 +149,9 @@ class BranchV8 cc, string nm> : F2_2 { 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">; diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td index fa088e1d924..07491eb1c10 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -149,7 +149,9 @@ class BranchV8 cc, string nm> : F2_2 { 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">;