public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
@ 2021-03-01 20:32 qinzhao at gcc dot gnu.org
2021-04-21 15:01 ` [Bug rtl-optimization/99332] " acoplan at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: qinzhao at gcc dot gnu.org @ 2021-03-01 20:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Bug ID: 99332
Summary: ICE:inreset_sched_cycles_in_current_ebb, at
sel-sched.c:7147 with -fprofile-generate -O3
-fselective-scheduling -fselective-scheduling2
-fsel-sched-pipelining
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: qinzhao at gcc dot gnu.org
Target Milestone: ---
This testing case is reduced from CPU2017 511.povray, it appears on aarch64
with both gcc11 and gcc10:
$ cat t.C
class OStream {
public:
void printf(...);
};
typedef double VECTOR[3];
enum { X, Y, Z };
typedef struct ot_block_struct OT_BLOCK;
typedef int OT_NODE;
struct ot_block_struct {
OT_BLOCK *next;
VECTOR Point, S_Normal;
VECTOR To_Nearest_Surface;
short Bounce_Depth;
};
bool ot_write_block(OT_BLOCK *, void *);
bool ot_traverse(OT_NODE *, bool function(OT_BLOCK *, void *), void *handle) {
bool oksofar;
OT_BLOCK *this_block;
while (this_block) {
function(this_block, handle);
this_block = this_block->next;
}
return oksofar;
}
bool ot_save_tree() {
int *fd, *root;
ot_traverse(root, ot_write_block, fd);
}
bool ot_write_block(OT_BLOCK *bl, void *fd) {
((OStream *)fd)->printf(
bl[Z], bl->S_Normal[X] * int(bl->S_Normal[Z] * .5 * 254. + .499999),
bl[Z], int(bl->To_Nearest_Surface[X]),
int((bl->To_Nearest_Surface[Y] + 1.) * .5 * 254. + .499999),
int((bl->To_Nearest_Surface[Z] + 1.) * .5 * 254. + .499999));
return true;
}
[qzlocal@ca-dev-arm06 bug_2]$ sh t
/data1/qing/Install/latest/bin/g++ -fprofile-generate -O3
-fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining -c -o t.o
t.C
t.C: In function 'bool ot_save_tree()':
t.C:29:1: warning: no return statement in function returning non-void
[-Wreturn-type]
29 | }
| ^
during RTL pass: sched2
t.C:29:1: internal compiler error: in reset_sched_cycles_in_current_ebb, at
sel-sched.c:7147
0x1063387 reset_sched_cycles_in_current_ebb
../../latest_gcc/gcc/sel-sched.c:7147
0x1063387 sel_region_target_finish
../../latest_gcc/gcc/sel-sched.c:7220
0x1063387 sel_region_finish
../../latest_gcc/gcc/sel-sched.c:7276
0x1063387 sel_sched_region(int)
../../latest_gcc/gcc/sel-sched.c:7645
0x1063593 run_selective_scheduling()
../../latest_gcc/gcc/sel-sched.c:7720
0x103e70b rest_of_handle_sched2
../../latest_gcc/gcc/sched-rgn.c:3738
0x103e70b execute
../../latest_gcc/gcc/sched-rgn.c:3882
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
CPU2017 511.povray cannot be compiled on aarch64 due to this bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
@ 2021-04-21 15:01 ` acoplan at gcc dot gnu.org
2021-04-22 11:39 ` acoplan at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-04-21 15:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Alex Coplan <acoplan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |acoplan at gcc dot gnu.org
Last reconfirmed| |2021-04-21
--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Confirmed on trunk. I can't reproduce it on GCC 10.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
2021-04-21 15:01 ` [Bug rtl-optimization/99332] " acoplan at gcc dot gnu.org
@ 2021-04-22 11:39 ` acoplan at gcc dot gnu.org
2021-07-06 6:44 ` [Bug rtl-optimization/99332] [11/12 Regression] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-04-22 11:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
--- Comment #2 from Alex Coplan <acoplan at gcc dot gnu.org> ---
FWIW, the testcase starts ICEing with
r11-5171-g1d77928fc49b4f2487fd78db26bbebd00f881414 - I guess it's latent
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] [11/12 Regression] ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
2021-04-21 15:01 ` [Bug rtl-optimization/99332] " acoplan at gcc dot gnu.org
2021-04-22 11:39 ` acoplan at gcc dot gnu.org
@ 2021-07-06 6:44 ` rguenth at gcc dot gnu.org
2021-07-28 7:06 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-06 6:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.2
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] [11/12 Regression] ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
` (2 preceding siblings ...)
2021-07-06 6:44 ` [Bug rtl-optimization/99332] [11/12 Regression] " rguenth at gcc dot gnu.org
@ 2021-07-28 7:06 ` rguenth at gcc dot gnu.org
2022-01-17 15:01 ` [Bug rtl-optimization/99332] [11/12 Regression] ICE:in reset_sched_cycles_in_current_ebb, " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-28 7:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.2 |11.3
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.2 is being released, retargeting bugs to GCC 11.3
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] [11/12 Regression] ICE:in reset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
` (3 preceding siblings ...)
2021-07-28 7:06 ` rguenth at gcc dot gnu.org
@ 2022-01-17 15:01 ` rguenth at gcc dot gnu.org
2022-04-21 7:48 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 15:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2021-04-21 00:00:00 |2022-1-17
Summary|[11/12 Regression] |[11/12 Regression] ICE:in
|ICE:inreset_sched_cycles_in |reset_sched_cycles_in_curre
|_current_ebb, at |nt_ebb, at sel-sched.c:7147
|sel-sched.c:7147 with |with -fprofile-generate -O3
|-fprofile-generate -O3 |-fselective-scheduling
|-fselective-scheduling |-fselective-scheduling2
|-fselective-scheduling2 |-fsel-sched-pipelining
|-fsel-sched-pipelining |
Priority|P3 |P2
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Re-confirmed on trunk.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] [11/12 Regression] ICE:in reset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
` (4 preceding siblings ...)
2022-01-17 15:01 ` [Bug rtl-optimization/99332] [11/12 Regression] ICE:in reset_sched_cycles_in_current_ebb, " rguenth at gcc dot gnu.org
@ 2022-04-21 7:48 ` rguenth at gcc dot gnu.org
2023-05-29 10:04 ` [Bug rtl-optimization/99332] [11/12/13/14 " jakub at gcc dot gnu.org
2024-03-11 2:49 ` law at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21 7:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.3 |11.4
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] [11/12/13/14 Regression] ICE:in reset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
` (5 preceding siblings ...)
2022-04-21 7:48 ` rguenth at gcc dot gnu.org
@ 2023-05-29 10:04 ` jakub at gcc dot gnu.org
2024-03-11 2:49 ` law at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.4 |11.5
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/99332] [11/12/13/14 Regression] ICE:in reset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
` (6 preceding siblings ...)
2023-05-29 10:04 ` [Bug rtl-optimization/99332] [11/12/13/14 " jakub at gcc dot gnu.org
@ 2024-03-11 2:49 ` law at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-11 2:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99332
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at gcc dot gnu.org
Priority|P2 |P4
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-03-11 2:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 20:32 [Bug rtl-optimization/99332] New: ICE:inreset_sched_cycles_in_current_ebb, at sel-sched.c:7147 with -fprofile-generate -O3 -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining qinzhao at gcc dot gnu.org
2021-04-21 15:01 ` [Bug rtl-optimization/99332] " acoplan at gcc dot gnu.org
2021-04-22 11:39 ` acoplan at gcc dot gnu.org
2021-07-06 6:44 ` [Bug rtl-optimization/99332] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-07-28 7:06 ` rguenth at gcc dot gnu.org
2022-01-17 15:01 ` [Bug rtl-optimization/99332] [11/12 Regression] ICE:in reset_sched_cycles_in_current_ebb, " rguenth at gcc dot gnu.org
2022-04-21 7:48 ` rguenth at gcc dot gnu.org
2023-05-29 10:04 ` [Bug rtl-optimization/99332] [11/12/13/14 " jakub at gcc dot gnu.org
2024-03-11 2:49 ` law 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).