[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td
Chris Lattner
sabre at nondot.org
Fri Oct 13 12:10:48 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.td updated: 1.246 -> 1.247
---
Log message:
set isBarrier correctly
---
Diffs of the changes: (+4 -1)
PPCInstrInfo.td | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.246 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.247
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.246 Thu Oct 12 12:56:34 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Fri Oct 13 14:10:34 2006
@@ -312,7 +312,7 @@
[]>;
}
-let isTerminator = 1, noResults = 1, PPC970_Unit = 7 in {
+let isTerminator = 1, isBarrier = 1, noResults = 1, PPC970_Unit = 7 in {
let isReturn = 1 in
def BLR : XLForm_2_ext<19, 16, 20, 0, 0, (ops), "blr", BrB, [(retflag)]>;
def BCTR : XLForm_2_ext<19, 528, 20, 0, 0, (ops), "bctr", BrB, []>;
@@ -324,12 +324,15 @@
let isBranch = 1, isTerminator = 1, hasCtrlDep = 1,
noResults = 1, PPC970_Unit = 7 in {
+ // COND_BRANCH is formed before branch selection, it is turned into Bcc below.
def COND_BRANCH : Pseudo<(ops CRRC:$crS, u16imm:$opc, target:$dst),
"${:comment} COND_BRANCH $crS, $opc, $dst",
[(PPCcondbranch CRRC:$crS, imm:$opc, bb:$dst)]>;
+ let isBarrier = 1 in {
def B : IForm<18, 0, 0, (ops target:$dst),
"b $dst", BrB,
[(br bb:$dst)]>;
+ }
def BLT : BForm<16, 0, 0, 12, 0, (ops CRRC:$crS, target:$block),
"blt $crS, $block", BrB>;
More information about the llvm-commits
mailing list