Skip to content

Commit 3eca8ed

Browse files
committed
Adds instruction sizes for Pseudo{CALL,TAIL}_Medium
1 parent 9267fd0 commit 3eca8ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/LoongArch/LoongArchInstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ def : Pat<(loongarch_call tglobaladdr:$func), (PseudoCALL tglobaladdr:$func)>;
14841484
def : Pat<(loongarch_call texternalsym:$func), (PseudoCALL texternalsym:$func)>;
14851485

14861486
// Function call with 'Medium' code model.
1487-
let isCall = 1, Defs = [R1, R20] in
1487+
let isCall = 1, Defs = [R1, R20], Size = 8 in
14881488
def PseudoCALL_MEDIUM : Pseudo<(outs), (ins bare_symbol:$func)>;
14891489

14901490
let Predicates = [IsLA64] in {
@@ -1534,7 +1534,7 @@ def : Pat<(loongarch_tail (iPTR texternalsym:$dst)),
15341534

15351535
// Tail call with 'Medium' code model.
15361536
let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1,
1537-
Uses = [R3], Defs = [R20] in
1537+
Uses = [R3], Defs = [R20], Size = 8 in
15381538
def PseudoTAIL_MEDIUM : Pseudo<(outs), (ins bare_symbol:$dst)>;
15391539

15401540
let Predicates = [IsLA64] in {

0 commit comments

Comments
 (0)