Skip to content

Commit 73dce4a

Browse files
committed
Fix BL definition. BL is no call and does not read SP.
1 parent a63397d commit 73dce4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,9 +2648,9 @@ let isBranch = 1, isTerminator = 1, isBarrier = 1 in {
26482648
def B : BranchImm<0, "b", [(br bb:$addr)]>;
26492649
} // isBranch, isTerminator, isBarrier
26502650

2651-
let isCall = 1, Defs = [LR], Uses = [SP] in {
2652-
def BL : CallImm<1, "bl", [(AArch64call tglobaladdr:$addr)]>;
2653-
} // isCall
2651+
let isBranch = 1, Defs = [LR] in {
2652+
def BL : BranchImm<1, "bl", [(AArch64adr tglobaladdr:$addr)]>;
2653+
} // isBranch
26542654
def : Pat<(AArch64call texternalsym:$func), (BL texternalsym:$func)>;
26552655

26562656
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)