]> gcc.gnu.org Git - gcc.git/commit
LoongArch: Set default alignment for functions jumps and loops [PR112919].
authorLulu Cheng <chenglulu@loongson.cn>
Tue, 2 Apr 2024 06:29:08 +0000 (14:29 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Mon, 8 Apr 2024 00:47:24 +0000 (08:47 +0800)
commit8f0ff6b998748f3581e0f06e3108193866b1209d
treec125891c965b4cadb4049691147898fb31cd76f7
parent4e3c8257304c55f2ebfb24bd6de3236bda0f054e
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.
gcc/config/loongarch/loongarch-def.cc
gcc/config/loongarch/loongarch-opts.cc
gcc/config/loongarch/loongarch-tune.h
This page took 0.057578 seconds and 6 git commands to generate.