mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Mark unconditional branches as barriers. Found using -verify-machineinstrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea6c39d417
commit
4ee2aa7eb2
@ -642,7 +642,7 @@ defm RETSP : FU6_LU6<"retsp", XCoreRetsp>;
|
||||
|
||||
// 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 @@ def LDAP_lu10_ba : _FLU10<(outs),
|
||||
"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 @@ def CLZ_l2r : _FL2R<(outs GRRegs:$dst), (ins GRRegs:$src),
|
||||
// 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)]>;
|
||||
|
Loading…
Reference in New Issue
Block a user