[llvm-branch-commits] [LoongArch] Avoid indirect branch jumps using the ra register (PR #115424)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Nov 7 22:05:16 PST 2024


https://github.com/wangleiat created https://github.com/llvm/llvm-project/pull/115424

Micro-architecture unconditionally treats a "jr $ra" as "return from
subroutine", hence doing "jr $ra" would interfere with both subroutine
return prediction and the more general indirect branch prediction.

GCC thread: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110136





More information about the llvm-branch-commits mailing list