From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDD793858D28; Fri, 6 Jan 2023 10:38:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDD793858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673001538; bh=T0IGxhfsdunNGU5wXK6tFAdp/zXI9nxG4El8sUvJk5E=; h=From:To:Subject:Date:From; b=LdrwDwZ0ouY1vm3zA1w8qu6LYBJksFMoJNcOr1M4DeY1tIVetZlpQCL1jdNQ4ZxHs Yx2GARv3zjqpoJO7TZXH24kY9G/c3Y6fF4T1VFej4qnz210lph4KVC6O2vNTAGkua3 +R67leYkz/IgxzOf5Ej+txaf98P6Hwmy0DJioKOs= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108314] New: [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE Date: Fri, 06 Jan 2023 10:38:57 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108314 Bug ID: 108314 Summary: [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following appears to be a regression on the trunk: $ cat t.c int x, y, z; void f(void) { int t =3D 4; for (; x; x++) { if (y) continue; t =3D 0; } z =3D t; } $ aarch64-none-elf-gcc -c t.c -O2 -march=3Darmv9-a during GIMPLE pass: vect t.c: In function 'f': t.c:2:6: internal compiler error: Segmentation fault 2 | void f(void) { | ^ 0xed3a4f crash_signal /home/alecop01/toolchain/src/gcc/gcc/toplev.cc:314 0x17255c4 do_valueize /home/alecop01/toolchain/src/gcc/gcc/gimple-match-head.cc:845 0x17255c4 operator() /home/alecop01/toolchain/src/gcc/gcc/gimple-match-head.cc:1071 0x17255c4 gimple_extract, gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree), tree_node* (*)(tree)):: > /home/alecop01/toolchain/src/gcc/gcc/gimple-match-head.cc:1028 0x17255c4 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) /home/alecop01/toolchain/src/gcc/gcc/gimple-match-head.cc:1103 0xb239b6 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) /home/alecop01/toolchain/src/gcc/gcc/gimple-fold.cc:7441 0x113d196 visit_stmt /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-sccvn.cc:6134 0x113dcee process_bb /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-sccvn.cc:7844 0x1140b4d do_rpo_vn_1 /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-sccvn.cc:8443 0x114127c do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool, vn_lookup_kind) /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-sccvn.cc:8545 0x123c0ce execute /home/alecop01/toolchain/src/gcc/gcc/tree-vectorizer.cc:1388 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.=