[llvm-commits] [llvm] r96960 - /llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td
Richard Osborne
richard at xmos.com
Tue Feb 23 10:13:39 PST 2010
Author: friedgold
Date: Tue Feb 23 12:13:38 2010
New Revision: 96960
URL: http://llvm.org/viewvc/llvm-project?rev=96960&view=rev
Log:
Mark unconditional branches as barriers. Found using -verify-machineinstrs
Modified:
llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td
Modified: llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td?rev=96960&r1=96959&r2=96960&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td (original)
+++ llvm/trunk/lib/Target/XCore/XCoreInstrInfo.td Tue Feb 23 12:13:38 2010
@@ -642,7 +642,7 @@
// TODO extdp, kentsp, krestsp, blat, setsr
// clrsr, getsr, kalli
-let isBranch = 1, isTerminator = 1 in {
+let isBranch = 1, isTerminator = 1, isBarrier = 1 in {
def BRBU_u6 : _FU6<
(outs),
(ins brtarget:$target),
@@ -703,7 +703,7 @@
"ldap r11, $addr",
[(set R11, (pcrelwrapper tblockaddress:$addr))]>;
-let isCall=1,
+let isCall=1, isBarrier = 1,
// All calls clobber the link register and the non-callee-saved registers:
Defs = [R0, R1, R2, R3, R11, LR] in {
def BL_u10 : _FU10<
@@ -776,7 +776,7 @@
// TODO edu, eeu, waitet, waitef, freer, tstart, msync, mjoin, syncr, clrtp
// setdp, setcp, setv, setev, kcall
// dgetreg
-let isBranch=1, isIndirectBranch=1, isTerminator=1 in
+let isBranch=1, isIndirectBranch=1, isTerminator=1, isBarrier = 1 in
def BAU_1r : _F1R<(outs), (ins GRRegs:$addr),
"bau $addr",
[(brind GRRegs:$addr)]>;
More information about the llvm-commits
mailing list