diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2023-06-07 10:21:58 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2023-06-15 16:13:51 +0800 |
commit | 5430c86e71927492399129f3df80824c6c334ddf (patch) | |
tree | 76afb83a86d19380a7b7f384f139bd19025ee602 /libcpp/files.cc | |
parent | b992bddac7970b64fe12b07ab3cf47ef4c1f328c (diff) | |
download | gcc-5430c86e71927492399129f3df80824c6c334ddf.zip gcc-5430c86e71927492399129f3df80824c6c334ddf.tar.gz gcc-5430c86e71927492399129f3df80824c6c334ddf.tar.bz2 |
LoongArch: Avoid non-returning indirect jumps through $ra [PR110136]
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.
Therefore, a problem like PR110136 can cause a significant increase in branch error
prediction rate and affect performance. The same problem exists with "indirect_jump".
gcc/ChangeLog:
PR target/110136
* config/loongarch/loongarch.md: Modify the register constraints for template
"jumptable" and "indirect_jump" from "r" to "e".
Co-authored-by: Andrew Pinski <apinski@marvell.com>
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions