Skip to content

Commit

Permalink
Fix BL definition. BL is no call and does not read SP.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jan 5, 2024
1 parent a63397d commit 73dce4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/Target/AArch64/AArch64InstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -2648,9 +2648,9 @@ let isBranch = 1, isTerminator = 1, isBarrier = 1 in {
def B : BranchImm<0, "b", [(br bb:$addr)]>;
} // isBranch, isTerminator, isBarrier

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

//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit 73dce4a

Please sign in to comment.