diff options
author | Hao Liu <hliu@os.amperecomputing.com> | 2023-08-04 10:32:52 +0800 |
---|---|---|
committer | Hao Liu <hliu@os.amperecomputing.com> | 2023-08-04 10:34:32 +0800 |
commit | 4d8b5563179f3a7ca268b64f71731a4878635497 (patch) | |
tree | b53bc9512e0e4d75ef934595473f88e93af7c2d4 /include/leb128.h | |
parent | 51e5a5cefb11d8a7b2216e866abcc225ba16d127 (diff) | |
download | gcc-4d8b5563179f3a7ca268b64f71731a4878635497.zip gcc-4d8b5563179f3a7ca268b64f71731a4878635497.tar.gz gcc-4d8b5563179f3a7ca268b64f71731a4878635497.tar.bz2 |
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.
Diffstat (limited to 'include/leb128.h')
0 files changed, 0 insertions, 0 deletions