public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115
@ 2022-08-01 10:19 asolokha at gmx dot com
2022-08-01 10:44 ` [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd marxin at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: asolokha at gmx dot com @ 2022-08-01 10:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Bug ID: 106497
Summary: [13 Regression] ICE in duplicate_block, at
cfghooks.cc:1115
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc 13.0.0 20220731 snapshot (g:525a1a73a5a563c829a5f76858fe122c9b39f254) ICEs
when compiling the following testcase w/ -O1 -fno-tree-dce:
int n;
__attribute__ ((pure,returns_twice)) int
bar (void);
int
foo (int x)
{
n = 0;
bar ();
if (x && n)
return 0;
foo (x);
}
% gcc-13.0.0 -O1 -fno-tree-dce -c umkc68rf.c
during GIMPLE pass: dom
umkc68rf.c: In function 'foo':
umkc68rf.c:7:1: internal compiler error: in duplicate_block, at
cfghooks.cc:1115
7 | foo (int x)
| ^~~
0x69bd32 duplicate_block(basic_block_def*, edge_def*, basic_block_def*,
copy_bb_data*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/cfghooks.cc:1115
0x112f3d6 create_block_for_threading
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-threadupdate.cc:428
0x1132be5 ssa_create_duplicates(redirection_data**, ssa_local_info_t*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-threadupdate.cc:1212
0x113496b void hash_table<redirection_data, false,
xcallocator>::traverse_noresize<ssa_local_info_t*,
&(ssa_create_duplicates(redirection_data**,
ssa_local_info_t*))>(ssa_local_info_t*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/hash-table.h:1084
0x113496b void hash_table<redirection_data, false,
xcallocator>::traverse<ssa_local_info_t*,
&(ssa_create_duplicates(redirection_data**,
ssa_local_info_t*))>(ssa_local_info_t*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/hash-table.h:1105
0x113496b fwd_jt_path_registry::thread_block_1(basic_block_def*, bool, bool)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-threadupdate.cc:1580
0x1136b6f fwd_jt_path_registry::thread_block(basic_block_def*, bool)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-threadupdate.cc:1627
0x1136b6f fwd_jt_path_registry::update_cfg(bool)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-threadupdate.cc:2724
0x1133dea jt_path_registry::thread_through_all_blocks(bool)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-threadupdate.cc:2595
0x1025609 execute
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220731/work/gcc-13-20220731/gcc/tree-ssa-dom.cc:866
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
@ 2022-08-01 10:44 ` marxin at gcc dot gnu.org
2022-08-01 13:19 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-01 10:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Summary|[13 Regression] ICE in |[13 Regression] ICE in
|duplicate_block, at |duplicate_block, at
|cfghooks.cc:1115 |cfghooks.cc:1115 since
| |r13-1753-g26cea5f108e0facd
Last reconfirmed| |2022-08-01
CC| |amonakov at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-1753-g26cea5f108e0facd.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
2022-08-01 10:44 ` [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd marxin at gcc dot gnu.org
@ 2022-08-01 13:19 ` rguenth at gcc dot gnu.org
2022-08-01 13:20 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-01 13:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Keywords| |ice-checking
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
2022-08-01 10:44 ` [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd marxin at gcc dot gnu.org
2022-08-01 13:19 ` rguenth at gcc dot gnu.org
@ 2022-08-01 13:20 ` rguenth at gcc dot gnu.org
2022-08-01 18:33 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-01 13:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
` (2 preceding siblings ...)
2022-08-01 13:20 ` rguenth at gcc dot gnu.org
@ 2022-08-01 18:33 ` pinskia at gcc dot gnu.org
2022-08-01 18:45 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-01 18:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|ASSIGNED |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 97333 ...
*** This bug has been marked as a duplicate of bug 97333 ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
` (3 preceding siblings ...)
2022-08-01 18:33 ` pinskia at gcc dot gnu.org
@ 2022-08-01 18:45 ` pinskia at gcc dot gnu.org
2022-08-02 11:29 ` cvs-commit at gcc dot gnu.org
2022-08-02 11:31 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-01 18:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|DUPLICATE |---
Status|RESOLVED |ASSIGNED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually let's reopen this and make a meta-bug for the issues related to jump
threading a basic block duplicating.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
` (4 preceding siblings ...)
2022-08-01 18:45 ` pinskia at gcc dot gnu.org
@ 2022-08-02 11:29 ` cvs-commit at gcc dot gnu.org
2022-08-02 11:31 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-02 11:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:0f3514756e0b4d8993ee43dcd958974eb1424061
commit r13-1929-g0f3514756e0b4d8993ee43dcd958974eb1424061
Author: Richard Biener <rguenther@suse.de>
Date: Tue Aug 2 12:19:25 2022 +0200
tree-optimization/106497 - more forward threader can-copy-bb
This adds EDGE_COPY_SRC_JOINER_BLOCK sources to the set of blocks
we need to check we can duplicate.
PR tree-optimization/106497
* tree-ssa-threadupdate.cc (fwd_jt_path_registry::update_cfg):
Also verify we can copy EDGE_COPY_SRC_JOINER_BLOCK.
* gcc.dg/torture/pr106497.c: New testcase.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
` (5 preceding siblings ...)
2022-08-02 11:29 ` cvs-commit at gcc dot gnu.org
@ 2022-08-02 11:31 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-02 11:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-08-02 11:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 10:19 [Bug tree-optimization/106497] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 asolokha at gmx dot com
2022-08-01 10:44 ` [Bug tree-optimization/106497] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1115 since r13-1753-g26cea5f108e0facd marxin at gcc dot gnu.org
2022-08-01 13:19 ` rguenth at gcc dot gnu.org
2022-08-01 13:20 ` rguenth at gcc dot gnu.org
2022-08-01 18:33 ` pinskia at gcc dot gnu.org
2022-08-01 18:45 ` pinskia at gcc dot gnu.org
2022-08-02 11:29 ` cvs-commit at gcc dot gnu.org
2022-08-02 11:31 ` rguenth 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).