public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253
@ 2022-05-28 22:39 dcb314 at hotmail dot com
2022-05-28 22:50 ` [Bug c/105763] " dcb314 at hotmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2022-05-28 22:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
Bug ID: 105763
Summary: ice in outgoing_edge_range_p, at gimple-ra
nge-gori.cc:1253
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 53048
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53048&action=edit
C source code
For the attached code, with compiler flag -O3, does this:
during GIMPLE pass: unswitch
rl2png.c: In function ‘rl2_decode_png’:
rl2png.c:1292:1: internal compiler error: in outgoing_edge_range_p, at
gimple-ra
nge-gori.cc:1253
0xa17888 gori_compute::outgoing_edge_range_p(irange&, edge_def*, tree_node*,
ran
ge_query&)
../../trunk.git/gcc/gimple-range-gori.cc:1253
0x2da292b evaluate_control_stmt_using_entry_checks
../../trunk.git/gcc/tree-ssa-loop-unswitch.cc:686
0x2da4e43 evaluate_bbs<evaluate_loop_insns_for_predicate(loop*,
predicate_vector
&, unswitch_predicate*, int, unsigned int*, unsigned
int*)::<lambda(basic_block)
> >
../../trunk.git/gcc/tree-ssa-loop-unswitch.cc:830
0x2da97b6 evaluate_loop_insns_for_predicate
../../trunk.git/gcc/tree-ssa-loop-unswitch.cc:876
The problem first seems to occur sometime between git hash 442cf0977a299394
and 850a9ce8bcca59c7, a distance of some 32 commits.
A reduction is running now and will be finishing in the next ten minutes.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/105763] ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
@ 2022-05-28 22:50 ` dcb314 at hotmail dot com
2022-05-28 23:25 ` [Bug tree-optimization/105763] [13 Regression] " pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2022-05-28 22:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Reduced C code is
int rl2_decode_png_bit_depth;
int *rl2_decode_png_p_data;
void rl2_decode_png_row_pointers() {
unsigned sample_type = 0;
_setjmp();
switch (rl2_decode_png_bit_depth)
case 6:
sample_type = 7;
png_destroy_read_struct();
for (;;)
switch (sample_type)
case 3:
case 5:
*rl2_decode_png_p_data;
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
2022-05-28 22:50 ` [Bug c/105763] " dcb314 at hotmail dot com
@ 2022-05-28 23:25 ` pinskia at gcc dot gnu.org
2022-05-29 7:10 ` [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 dcb314 at hotmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-28 23:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|12.0 |13.0
Target Milestone|--- |13.0
Summary|ice in |[13 Regression] ice in
|outgoing_edge_range_p, at |outgoing_edge_range_p, at
|gimple-ra nge-gori.cc:1253 |gimple-ra nge-gori.cc:1253
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
2022-05-28 22:50 ` [Bug c/105763] " dcb314 at hotmail dot com
2022-05-28 23:25 ` [Bug tree-optimization/105763] [13 Regression] " pinskia at gcc dot gnu.org
@ 2022-05-29 7:10 ` dcb314 at hotmail dot com
2022-05-30 10:07 ` [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342 marxin at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2022-05-29 7:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
David Binderman <dcb314 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13 Regression] ice in |[13 Regression] ice in
|outgoing_edge_range_p, at |outgoing_edge_range_p, at
|gimple-ra nge-gori.cc:1253 |gimple-range-gori.cc:1253
CC| |amacleod at redhat dot com
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Git blame says:
90e88fd376bb (Andrew MacLeod 2020-10-06 12:12:53 -0400 1253)
gcc_checking_assert (gimple_range_ssa_p (name));
Adding author. Git commit 156d7d8dbc8d65d3958486bc4112a7279935e47d might be a
likely
candidate.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
` (2 preceding siblings ...)
2022-05-29 7:10 ` [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 dcb314 at hotmail dot com
@ 2022-05-30 10:07 ` marxin at gcc dot gnu.org
2022-05-30 11:10 ` [Bug tree-optimization/105763] [13 Regression] ICE " rguenth at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-30 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-05-30
Summary|[13 Regression] ice in |[13 Regression] ice in
|outgoing_edge_range_p, at |outgoing_edge_range_p, at
|gimple-range-gori.cc:1253 |gimple-range-gori.cc:1253
| |since
| |r13-754-ga1c9f779f7528342
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
CC| |marxin at gcc dot gnu.org
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-754-ga1c9f779f7528342, let me take a look.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ICE in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
` (3 preceding siblings ...)
2022-05-30 10:07 ` [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342 marxin at gcc dot gnu.org
@ 2022-05-30 11:10 ` rguenth at gcc dot gnu.org
2022-05-30 11:15 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-30 11:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
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 #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ICE in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
` (4 preceding siblings ...)
2022-05-30 11:10 ` [Bug tree-optimization/105763] [13 Regression] ICE " rguenth at gcc dot gnu.org
@ 2022-05-30 11:15 ` rguenth at gcc dot gnu.org
2022-05-30 13:37 ` amacleod at redhat dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-30 11:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
It ICEs because ranger asserts on SSA_NAME_OCCURS_IN_ABNORMAL_PHI (for whatever
reason...). I have a fix.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ICE in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
` (5 preceding siblings ...)
2022-05-30 11:15 ` rguenth at gcc dot gnu.org
@ 2022-05-30 13:37 ` amacleod at redhat dot com
2022-06-01 7:08 ` cvs-commit at gcc dot gnu.org
2022-06-01 7:09 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: amacleod at redhat dot com @ 2022-05-30 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
--- Comment #6 from Andrew Macleod <amacleod at redhat dot com> ---
yeah, from times of yore when the small set of callers made sure it was only
invoked on useful cases. There were a lot of development asserts from initial
development.
There is no reason to trap, it can simply return false. ie
- gcc_checking_assert (gimple_range_ssa_p (name));
+ if (!gimple_range_ssa_p (name))
+ return false;
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ICE in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
` (6 preceding siblings ...)
2022-05-30 13:37 ` amacleod at redhat dot com
@ 2022-06-01 7:08 ` cvs-commit at gcc dot gnu.org
2022-06-01 7:09 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-01 7:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
--- Comment #7 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:ae575e93b6f7fb7077940cb7410f899da184ec2d
commit r13-873-gae575e93b6f7fb7077940cb7410f899da184ec2d
Author: Richard Biener <rguenther@suse.de>
Date: Mon May 30 13:19:38 2022 +0200
tree-optimization/105763 - avoid abnormals with ranger queries
In unswitching we use ranger to simplify switch statements so we
have to avoid doing anything for abnormals.
2022-05-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/105763
* tree-ssa-loop-unswitch.cc (find_unswitching_predicates_for_bb):
Check gimple_range_ssa_p.
* gcc.dg/pr105763.c: New testcase.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/105763] [13 Regression] ICE in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
` (7 preceding siblings ...)
2022-06-01 7:08 ` cvs-commit at gcc dot gnu.org
@ 2022-06-01 7:09 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-06-01 7:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-06-01 7:09 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28 22:39 [Bug c/105763] New: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 dcb314 at hotmail dot com
2022-05-28 22:50 ` [Bug c/105763] " dcb314 at hotmail dot com
2022-05-28 23:25 ` [Bug tree-optimization/105763] [13 Regression] " pinskia at gcc dot gnu.org
2022-05-29 7:10 ` [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 dcb314 at hotmail dot com
2022-05-30 10:07 ` [Bug tree-optimization/105763] [13 Regression] ice in outgoing_edge_range_p, at gimple-range-gori.cc:1253 since r13-754-ga1c9f779f7528342 marxin at gcc dot gnu.org
2022-05-30 11:10 ` [Bug tree-optimization/105763] [13 Regression] ICE " rguenth at gcc dot gnu.org
2022-05-30 11:15 ` rguenth at gcc dot gnu.org
2022-05-30 13:37 ` amacleod at redhat dot com
2022-06-01 7:08 ` cvs-commit at gcc dot gnu.org
2022-06-01 7:09 ` 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).