From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 745953858297; Wed, 3 Aug 2022 22:44:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 745953858297 From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106521] New: ICE at -O1 with "-floop-unroll-and-jam --param unroll-jam-min-percent=0": verify_ssa failed Date: Wed, 03 Aug 2022 22:44:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2022 22:44:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106521 Bug ID: 106521 Summary: ICE at -O1 with "-floop-unroll-and-jam --param unroll-jam-min-percent=3D0": verify_ssa failed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- It appears to be a recent regression (and possibly related to PR106249). Compiler Explorer: https://godbolt.org/z/Tanf9axav [545] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/suz-local/software/local/gcc-trunk/libexec/gcc= /x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=3Dyes --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=3Dc,c++ --disable-werror --enable-mu= ltilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20220803 (experimental) [master r13-1950-g9bb19e143cf] (= GCC)=20 [546] %=20 [546] % gcctk -O1 -floop-unroll-and-jam --param unroll-jam-min-percent=3D0 small.c small.c: In function =E2=80=98main=E2=80=99: small.c:4:5: error: definition in block 30 does not dominate use in block 33 4 | int main() { | ^~~~ for SSA_NAME: b_lsm.15_82 in statement: b_lsm.15_23 =3D PHI PHI argument b_lsm.15_82 for PHI node b_lsm.15_23 =3D PHI during GIMPLE pass: unrolljam small.c:4:5: internal compiler error: verify_ssa failed 0x11356ef verify_ssa(bool, bool) ../../gcc-trunk/gcc/tree-ssa.cc:1211 0x105fb5b rewrite_into_loop_closed_ssa_1 ../../gcc-trunk/gcc/tree-ssa-loop-manip.cc:576 0x105fb5b rewrite_into_loop_closed_ssa(bitmap_head*, unsigned int) ../../gcc-trunk/gcc/tree-ssa-loop-manip.cc:626 0x1c94c2d tree_loop_unroll_and_jam ../../gcc-trunk/gcc/gimple-loop-jam.cc:612 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. [547] %=20 [547] % cat small.c short a, b, e; volatile long c; long d; int main() { for (; d; d++) { long g =3D a =3D 1; for (; a; a++) { g++; c; } g && (b =3D e); } return 0; }=