aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorLulu Cheng <chenglulu@loongson.cn>2024-04-02 14:29:08 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-04-08 08:47:24 +0800
commit8f0ff6b998748f3581e0f06e3108193866b1209d (patch)
treec125891c965b4cadb4049691147898fb31cd76f7 /libgcc
parent4e3c8257304c55f2ebfb24bd6de3236bda0f054e (diff)
downloadgcc-8f0ff6b998748f3581e0f06e3108193866b1209d.zip
gcc-8f0ff6b998748f3581e0f06e3108193866b1209d.tar.gz
gcc-8f0ff6b998748f3581e0f06e3108193866b1209d.tar.bz2
LoongArch: Set default alignment for functions jumps and loops [PR112919].
Xi Ruoyao set the alignment rules under LA464 in commit r14-1839, but the macro ASM_OUTPUT_ALIGN_WITH_NOP was removed in R14-4674, which affected the alignment rules. So I set different aligns on LA464 and LA664 again to test the performance of spec2006, and modify the alignment based on the test results. gcc/ChangeLog: PR target/112919 * config/loongarch/loongarch-def.cc (la664_align): Newly defined function that sets alignment rules under the LA664 microarchitecture. * config/loongarch/loongarch-opts.cc (loongarch_target_option_override): If not optimizing for size, set the default alignment to what the target wants. * config/loongarch/loongarch-tune.h (struct loongarch_align): Add new member variables jump and loop.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions