llvm-project
6d3b8c8b - [Mips] Honor -mips-compact-branches=never for calls on R6 (#245145)

Commit
8 days ago
[Mips] Honor -mips-compact-branches=never for calls on R6 (#245145) Since #241162 direct calls and tail calls on MIPS32/64 R6 always use BALC/BC, even with -mips-compact-branches=never (clang -mcompact-branches=never). Select JAL/TAILCALL on R6 when compact branches are disabled. Also: - Restore the jal tests in MC/Mips/mips{32,64}r6/valid.s. jal is still valid on R6. - Restore the jal R6 coverage in lld mips-npic-call-pic.s and mips-plt-r6.s, and add the balc case as an extra run instead. - Add hasExtraSrcRegAllocReq to TAILCALL_R6 like the other tail call pseudos. - Drop the 64-bit JAL texternalsym pattern, which the generic iPTR pattern now covers. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading