public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247
@ 2020-08-10 3:36 asolokha at gmx dot com
2020-08-10 3:58 ` [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c marxin at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: asolokha at gmx dot com @ 2020-08-10 3:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
Bug ID: 96548
Summary: [11 Regression] ICE in compute_live_loop_exits, at
tree-ssa-loop-manip.c:247
Product: gcc
Version: 11.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-11.0.0-alpha20200809 snapshot (g:71197a5d13d0b540a9b5efe7ae2512d76386e9d1)
ICEs when compiling the following testcase w/ -O1:
int c9, d3;
void
sg (int *rs, int f2)
{
for (;;)
{
if (*rs < 1)
__builtin_unreachable ();
for (c9 = 0; c9 < 1; ++c9)
while (f2 < 1)
++c9;
if (d3)
c9 += !!f2 ? 0 : d3;
}
}
% gcc-11.0.0 -O1 -c tr7hy0bz.c
during GIMPLE pass: lim
tr7hy0bz.c: In function 'sg':
tr7hy0bz.c:4:1: internal compiler error: in compute_live_loop_exits, at
tree-ssa-loop-manip.c:247
4 | sg (int *rs, int f2)
| ^~
0x6d7a54 compute_live_loop_exits
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-manip.c:247
0x6d7a54 add_exit_phis_var
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-manip.c:334
0x6d7a54 add_exit_phis
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-manip.c:356
0x6d7a54 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-manip.c:678
0x6d7a54 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-manip.c:631
0xec3e83 tree_ssa_lim
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-im.c:3126
0xec3e83 execute
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200809/work/gcc-11-20200809/gcc/tree-ssa-loop-im.c:3173
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
@ 2020-08-10 3:58 ` marxin at gcc dot gnu.org
2020-08-10 13:17 ` dcb314 at hotmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-10 3:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-08-10
CC| |marxin at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
Summary|[11 Regression] ICE in |[11 Regression] ICE in
|compute_live_loop_exits, at |compute_live_loop_exits, at
|tree-ssa-loop-manip.c:247 |tree-ssa-loop-manip.c:247
| |since
| |r11-2574-g6aec53ee4f75a64c
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r11-2574-g6aec53ee4f75a64c.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
2020-08-10 3:58 ` [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c marxin at gcc dot gnu.org
@ 2020-08-10 13:17 ` dcb314 at hotmail dot com
2020-08-19 8:17 ` cnsun at uwaterloo dot ca
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-10 13:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
David Binderman <dcb314 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Here is another test case which demonstrates the fault:
int a, b, c, e;
int *d;
void f() {
if (0) {
for (; b;) {
c = f;
g:
for (; e;)
;
}
c |= a ?: 1;
if (*d)
d = e;
}
goto g;
}
Flag -O2 required.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
2020-08-10 3:58 ` [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c marxin at gcc dot gnu.org
2020-08-10 13:17 ` dcb314 at hotmail dot com
@ 2020-08-19 8:17 ` cnsun at uwaterloo dot ca
2020-08-19 8:41 ` dcb314 at hotmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cnsun at uwaterloo dot ca @ 2020-08-19 8:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
cnsun at uwaterloo dot ca <cnsun at uwaterloo dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cnsun at uwaterloo dot ca
--- Comment #3 from cnsun at uwaterloo dot ca <cnsun at uwaterloo dot ca> ---
Another one.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --prefix=/scratch/software/gcc-trunk
--disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200818 (experimental) [master revision
:65bdb4763:bb1b7f087bdd028000fd8f84e74b20adccc9d5bb] (GCC)
$ gcc-trunk -O2 small.c
during GIMPLE pass: lim
small.c: In function ‘main’:
small.c:4:5: internal compiler error: in compute_live_loop_exits, at
tree-ssa-loop-manip.c:247
4 | int main() {
| ^~~~
0x74a390 compute_live_loop_exits
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:247
0x74a390 add_exit_phis_var
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:334
0x74a390 add_exit_phis
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:356
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:678
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:631
0xfa022b tree_ssa_lim
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3126
0xfa022b execute
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3173
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.
$ gcc-trunk -O3 small.c
during GIMPLE pass: lim
small.c: In function ‘main’:
small.c:4:5: internal compiler error: in compute_live_loop_exits, at
tree-ssa-loop-manip.c:247
4 | int main() {
| ^~~~
0x74a390 compute_live_loop_exits
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:247
0x74a390 add_exit_phis_var
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:334
0x74a390 add_exit_phis
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:356
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:678
0x74a390 rewrite_into_loop_closed_ssa_1(bitmap_head*, unsigned int, int, loop*)
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-manip.c:631
0xfa022b tree_ssa_lim
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3126
0xfa022b execute
/tmp/tmp.iVAQqIzIa4-gcc-builder/gcc/gcc/tree-ssa-loop-im.c:3173
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.
$ cat small.c
short a, b, d, f, g, j;
int c, e;
int *h;
int main() {
int i = 0;
for (; i < 3; i++)
l:
b = j;
while (d)
e++;
g = f ? a : f;
*h = g;
if (c)
goto l;
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
` (2 preceding siblings ...)
2020-08-19 8:17 ` cnsun at uwaterloo dot ca
@ 2020-08-19 8:41 ` dcb314 at hotmail dot com
2020-08-19 8:44 ` marxin at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-19 8:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
This bug has been hanging about for over a week now without resolution.
Is the best way to get this into Richard's intray to assign it to him ?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
` (3 preceding siblings ...)
2020-08-19 8:41 ` dcb314 at hotmail dot com
@ 2020-08-19 8:44 ` marxin at gcc dot gnu.org
2020-08-25 8:12 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-19 8:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Richi is on vacation. I'm pretty sure he'll quick it as soon as he gets back.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
` (4 preceding siblings ...)
2020-08-19 8:44 ` marxin at gcc dot gnu.org
@ 2020-08-25 8:12 ` rguenth at gcc dot gnu.org
2020-08-25 12:12 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-25 8:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
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
Target Milestone|--- |11.0
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
` (5 preceding siblings ...)
2020-08-25 8:12 ` rguenth at gcc dot gnu.org
@ 2020-08-25 12:12 ` cvs-commit at gcc dot gnu.org
2020-08-25 12:12 ` rguenth at gcc dot gnu.org
2020-08-27 6:11 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-08-25 12:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
--- 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:660b5c10dc04988b02a2c3f6baed013340af3ef8
commit r11-2841-g660b5c10dc04988b02a2c3f6baed013340af3ef8
Author: Richard Biener <rguenther@suse.de>
Date: Tue Aug 25 10:59:24 2020 +0200
tree-optimization/96548 - fix failure to recompute RPO after CFG change
This recomputes RPO after store-motion changes the CFG.
2020-08-25 Richard Biener <rguenther@suse.de>
PR tree-optimization/96548
PR tree-optimization/96760
* tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
store-motion.
* gcc.dg/torture/pr96548.c: New testcase.
* gcc.dg/torture/pr96760.c: Likewise.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
` (6 preceding siblings ...)
2020-08-25 12:12 ` cvs-commit at gcc dot gnu.org
@ 2020-08-25 12:12 ` rguenth at gcc dot gnu.org
2020-08-27 6:11 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-25 12:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
` (7 preceding siblings ...)
2020-08-25 12:12 ` rguenth at gcc dot gnu.org
@ 2020-08-27 6:11 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-27 6:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96548
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stefansf at linux dot ibm.com
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 96801 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-08-27 6:11 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 3:36 [Bug tree-optimization/96548] New: [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 asolokha at gmx dot com
2020-08-10 3:58 ` [Bug tree-optimization/96548] [11 Regression] ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:247 since r11-2574-g6aec53ee4f75a64c marxin at gcc dot gnu.org
2020-08-10 13:17 ` dcb314 at hotmail dot com
2020-08-19 8:17 ` cnsun at uwaterloo dot ca
2020-08-19 8:41 ` dcb314 at hotmail dot com
2020-08-19 8:44 ` marxin at gcc dot gnu.org
2020-08-25 8:12 ` rguenth at gcc dot gnu.org
2020-08-25 12:12 ` cvs-commit at gcc dot gnu.org
2020-08-25 12:12 ` rguenth at gcc dot gnu.org
2020-08-27 6:11 ` 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).