https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115602
Bug ID: 115602 Summary: [15 Regression] ICE on liblapack-3.12.0: in vect_schedule_slp_node, at tree-vect-slp.cc:9643 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Possibly recent regression observed on liblapack-3.12.0 on r15-1566-gfd536b8412d4da. Reduced down to the following: * $ cat ztpmv.f.f SUBROUTINE ZTPMV_64(AP,X) COMPLEX*16 AP(*),X(*) COMPLEX*16 TEMP LOGICAL NOCONJ LOGICAL LSAME_64 IF (LSAME_64(UPLO,'U') .AND.LSAME_64(UPLO,'L')) THEN ELSE IF (LSAME_64(TRANS,'N') .AND.LSAME_64(DIAG,'N')) THEN IF (LSAME_64(UPLO,'U')) THEN IF (INCXINCXINCX.EQ.1) THEN TEMP = X(JX) IF (NOCONJ) THEN TEMP = TEMP*AP(KK) ELSE TEMP = TEMP*DCONJG0 DO 130 K = 1,J TEMP = TEMP + AP(K)*X(IX) 130 CONTINUE END IF X(JX) = TEMP END IF END IF END IF END Crashing: $ gfortran -O2 -frecursive -fdefault-integer-8 -c ztpmv.f.f -o bug.o -Wall during GIMPLE pass: slp ztpmv.f.f:1:25: 1 | SUBROUTINE ZTPMV_64(AP,X) | ^ internal compiler error: in vect_schedule_slp_node, at tree-vect-slp.cc:9643 0x1f2a3be diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x1f2aa98 internal_error(char const*, ...) ???:0 0x767124 fancy_abort(char const*, int, char const*) ???:0 0x74b0c3 vect_schedule_slp_node(vec_info*, _slp_tree*, _slp_instance*) [clone .part.0] [clone .cold] ???:0 0x10d34f2 vect_schedule_scc(vec_info*, _slp_tree*, _slp_instance*, hash_map<_slp_tree*, slp_scc_info, simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&, vec<_slp_tree*, va_heap, vl_ptr>&) ???:0 0x10d2989 vect_schedule_scc(vec_info*, _slp_tree*, _slp_instance*, hash_map<_slp_tree*, slp_scc_info, simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&, vec<_slp_tree*, va_heap, vl_ptr>&) ???:0 0x10d2989 vect_schedule_scc(vec_info*, _slp_tree*, _slp_instance*, hash_map<_slp_tree*, slp_scc_info, simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&, vec<_slp_tree*, va_heap, vl_ptr>&) ???:0 0x10d2989 vect_schedule_scc(vec_info*, _slp_tree*, _slp_instance*, hash_map<_slp_tree*, slp_scc_info, simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&, vec<_slp_tree*, va_heap, vl_ptr>&) ???:0 0x10d2989 vect_schedule_scc(vec_info*, _slp_tree*, _slp_instance*, hash_map<_slp_tree*, slp_scc_info, simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&, vec<_slp_tree*, va_heap, vl_ptr>&) ???:0 0x10d2989 vect_schedule_scc(vec_info*, _slp_tree*, _slp_instance*, hash_map<_slp_tree*, slp_scc_info, simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&, vec<_slp_tree*, va_heap, vl_ptr>&) ???:0 0x10d39f0 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) ???:0 0x10d61ca vect_slp_bbs(vec<basic_block_def*, va_heap, vl_ptr> const&, loop*) ???:0 0x10d7675 vect_slp_function(function*) ???:0 0x10deef5 (anonymous namespace)::pass_slp_vectorize::execute(function*) ???:0 $ gfortran -v Using built-in specs. COLLECT_GCC=/<<NIX>>/gfortran-15.0.0/bin/gfortran COLLECT_LTO_WRAPPER=/<<NIX>>/gfortran-15.0.0/libexec/gcc/x86_64-unknown-linux-gnu/15.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../source/configure --prefix=/<<NIX>>/gfortran-15.0.0 --with-gmp-include=/<<NIX>>/gmp-6.3.0-dev/include --with-gmp-lib=/<<NIX>>/gmp-6.3.0/lib --with-mpfr-include=/<<NIX>>/mpfr-4.2.1-dev/include --with-mpfr-lib=/<<NIX>>/mpfr-4.2.1/lib --with-mpc=/<<NIX>>/libmpc-1.3.1 --with-native-system-header-dir=/<<NIX>>/glibc-2.39-52-dev/include --with-build-sysroot=/ --with-gxx-include-dir=/<<NIX>>/gfortran-15.0.0/include/c++/15.0.0/ --program-prefix= --enable-lto --disable-libstdcxx-pch --without-included-gettext --with-system-zlib --enable-checking=release --enable-static --enable-languages=fortran --disable-multilib --enable-plugin --disable-libcc1 --with-isl=/<<NIX>>/isl-0.20 --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 99999999 (experimental) (GCC)