public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/109604] New: ice during GIMPLE pass: phiopt @ 2023-04-24 8:26 dcb314 at hotmail dot com 2023-04-24 8:36 ` [Bug tree-optimization/109604] [14 Regression] " rguenth at gcc dot gnu.org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: dcb314 at hotmail dot com @ 2023-04-24 8:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 Bug ID: 109604 Summary: ice during GIMPLE pass: phiopt Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: nilfs_bmap_find_target_seq_bmap; unsigned long nilfs_bmap_find_target_seq_bmap_0; unsigned long nilfs_bmap_find_target_seq() { if (nilfs_bmap_find_target_seq_bmap && nilfs_bmap_find_target_seq_bmap_0 + nilfs_bmap_find_target_seq_bmap) return nilfs_bmap_find_target_seq_bmap_0 + nilfs_bmap_find_target_seq_bmap; else return 0; } compiled by recent gcc trunk, does this: $ ../results/bin/gcc -c -w -O1 bug908.c bug908.c: In function ‘nilfs_bmap_find_target_seq’: bug908.c:9:1: error: definition in block 3 does not dominate use in block 4 9 | } | ^ for SSA_NAME: _5 in statement: # VUSE <.MEM_10(D)> return _5; during GIMPLE pass: phiopt bug908.c:9:1: internal compiler error: verify_ssa failed 0x107ae4f verify_ssa(bool, bool) ../../trunk.year/gcc/tree-ssa.cc:1211 This seems to have broken between git hash g:7e26fd6bcd39f53b and g:ff8f95449350372b, which is 6 revisions. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ice during GIMPLE pass: phiopt 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com @ 2023-04-24 8:36 ` rguenth at gcc dot gnu.org 2023-04-24 9:54 ` [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 marxin at gcc dot gnu.org ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2023-04-24 8:36 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |tree-optimization Target Milestone|--- |14.0 Summary|ice during GIMPLE pass: |[14 Regression] ice during |phiopt |GIMPLE pass: phiopt Version|13.0 |14.0 CC| |pinskia at gcc dot gnu.org ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com 2023-04-24 8:36 ` [Bug tree-optimization/109604] [14 Regression] " rguenth at gcc dot gnu.org @ 2023-04-24 9:54 ` marxin at gcc dot gnu.org 2023-04-24 12:20 ` pinskia at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: marxin at gcc dot gnu.org @ 2023-04-24 9:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[14 Regression] ice during |[14 Regression] ICE during |GIMPLE pass: phiopt |GIMPLE pass: phiopt since | |r14-169-g84325f1c6aa3c5 Last reconfirmed| |2023-04-24 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |marxin at gcc dot gnu.org --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Started with r14-169-g84325f1c6aa3c5. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com 2023-04-24 8:36 ` [Bug tree-optimization/109604] [14 Regression] " rguenth at gcc dot gnu.org 2023-04-24 9:54 ` [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 marxin at gcc dot gnu.org @ 2023-04-24 12:20 ` pinskia at gcc dot gnu.org 2023-04-24 15:22 ` pinskia at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-04-24 12:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|NEW |ASSIGNED ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com ` (2 preceding siblings ...) 2023-04-24 12:20 ` pinskia at gcc dot gnu.org @ 2023-04-24 15:22 ` pinskia at gcc dot gnu.org 2023-04-24 15:26 ` dcb314 at hotmail dot com ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-04-24 15:22 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I had already posted a fix for this (and approved already): https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616499.html I will add the testcase. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com ` (3 preceding siblings ...) 2023-04-24 15:22 ` pinskia at gcc dot gnu.org @ 2023-04-24 15:26 ` dcb314 at hotmail dot com 2023-04-24 15:50 ` cvs-commit at gcc dot gnu.org 2023-04-24 15:51 ` pinskia at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: dcb314 at hotmail dot com @ 2023-04-24 15:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 --- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- Another test case, this time in C++: struct { int second; } selectPlayer_playerRes; int selectPlayer_playerRes_0; int selectPlayer() { if (selectPlayer_playerRes_0 && selectPlayer_playerRes.second >= 0) return selectPlayer_playerRes.second; else return -1; } ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com ` (4 preceding siblings ...) 2023-04-24 15:26 ` dcb314 at hotmail dot com @ 2023-04-24 15:50 ` cvs-commit at gcc dot gnu.org 2023-04-24 15:51 ` pinskia at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-04-24 15:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 --- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>: https://gcc.gnu.org/g:2f58dd71d1b8e23f28a43360742519e92ee0c8d5 commit r14-199-g2f58dd71d1b8e23f28a43360742519e92ee0c8d5 Author: Andrew Pinski <apinski@marvell.com> Date: Thu Apr 20 09:23:25 2023 -0700 PHIOPT: Move check on diamond bb to tree_ssa_phiopt_worker from minmax_replacement This moves the check to make sure on the diamond shaped form bbs that the the two middle bbs are only for that diamond shaped form earlier in the shared code. Also remove the redundant check for single_succ_p since that was already done before hand. The next patch will simplify the code even further and remove redundant checks. PR tree-optimization/109604 gcc/ChangeLog: * tree-ssa-phiopt.cc (tree_ssa_phiopt_worker): Move the diamond form check from ... (minmax_replacement): Here. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr109604-1.c: New test. * gcc.c-torture/compile/pr109604-2.c: New test. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com ` (5 preceding siblings ...) 2023-04-24 15:50 ` cvs-commit at gcc dot gnu.org @ 2023-04-24 15:51 ` pinskia at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-04-24 15:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109604 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-04-24 15:51 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-04-24 8:26 [Bug c/109604] New: ice during GIMPLE pass: phiopt dcb314 at hotmail dot com 2023-04-24 8:36 ` [Bug tree-optimization/109604] [14 Regression] " rguenth at gcc dot gnu.org 2023-04-24 9:54 ` [Bug tree-optimization/109604] [14 Regression] ICE during GIMPLE pass: phiopt since r14-169-g84325f1c6aa3c5 marxin at gcc dot gnu.org 2023-04-24 12:20 ` pinskia at gcc dot gnu.org 2023-04-24 15:22 ` pinskia at gcc dot gnu.org 2023-04-24 15:26 ` dcb314 at hotmail dot com 2023-04-24 15:50 ` cvs-commit at gcc dot gnu.org 2023-04-24 15:51 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).