aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorLi Wei <liwei@loongson.cn>2024-01-26 16:41:11 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-02-02 09:22:07 +0800
commit593d518a6339f0f6546660de762811a463490176 (patch)
treea71ba6e989401303ea1b117058265a64f84aaf3d /gcc/go
parentf72586e5b9cbb91a099cb6970480eedcbce9f0c7 (diff)
downloadgcc-593d518a6339f0f6546660de762811a463490176.zip
gcc-593d518a6339f0f6546660de762811a463490176.tar.gz
gcc-593d518a6339f0f6546660de762811a463490176.tar.bz2
LoongArch: Adjust cost of vector_stmt that match multiply-add pattern.
We found that when only 128-bit vectorization was enabled, 549.fotonik3d_r failed to vectorize effectively. For this reason, we adjust the cost of 128-bit vector_stmt that match the multiply-add pattern to facilitate 128-bit vectorization. The experimental results show that after the modification, 549.fotonik3d_r performance can be improved by 9.77% under the 128-bit vectorization option. gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_multiply_add_p): New. (loongarch_vector_costs::add_stmt_cost): Adjust. gcc/testsuite/ChangeLog: * gfortran.dg/vect/vect-10.f90: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions