]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Fix ICE caused by function add_stmt_cost[PR121542].
authorLulu Cheng <chenglulu@loongson.cn>
Thu, 14 Aug 2025 03:59:53 +0000 (11:59 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 15 Aug 2025 01:10:49 +0000 (09:10 +0800)
commit27d6b600b1e5c0e0eccb41d957ef453c4f347e8d
tree84e85ba6a704940d160f3e2855cc32ed35856500
parent2c28b41d54dbfa1f05191b5463269b8f7d536d73
LoongArch: Fix ICE caused by function add_stmt_cost[PR121542].

PR target/121542

gcc/ChangeLog:

* config/loongarch/loongarch.cc
(loongarch_vector_costs::add_stmt_cost): When using vectype,
first determine whether it is NULL.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/pr121542.c: New test.

(cherry picked from commit d1c207a65d25b50e851ab53956271c91e0281ae0)
gcc/config/loongarch/loongarch.cc
gcc/testsuite/gcc.target/loongarch/pr121542.c [new file with mode: 0644]