]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: Avoid the ICE on empty reduction definition in info_for_reduction [PR110625]
authorHao Liu <hliu@os.amperecomputing.com>
Fri, 4 Aug 2023 02:32:52 +0000 (10:32 +0800)
committerHao Liu <hliu@os.amperecomputing.com>
Fri, 4 Aug 2023 02:34:32 +0000 (10:34 +0800)
commit4d8b5563179f3a7ca268b64f71731a4878635497
treeb53bc9512e0e4d75ef934595473f88e93af7c2d4
parent51e5a5cefb11d8a7b2216e866abcc225ba16d127
AArch64: Avoid the ICE on empty reduction definition in info_for_reduction [PR110625]

Fix the assertion failure on empty reduction define in info_for_reduction.
Even a stmt is live, it may still have empty reduction define.  Check the
reduction definition instead of live info before calling info_for_reduction.

gcc/ChangeLog:

PR target/110625
* config/aarch64/aarch64.cc (aarch64_force_single_cycle): check
STMT_VINFO_REDUC_DEF to avoid failures in info_for_reduction.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/pr110625_3.c: New testcase.
gcc/config/aarch64/aarch64.cc
gcc/testsuite/gcc.target/aarch64/pr110625_3.c [new file with mode: 0644]