public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/107935] New: ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011
@ 2022-11-30 14:55 zhendong.su at inf dot ethz.ch
2022-11-30 17:49 ` [Bug tree-optimization/107935] [13 Regression] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2022-11-30 14:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107935
Bug ID: 107935
Summary: ICE on valid code at -O3: in set_ssa_val_to, at
tree-ssa-sccvn.cc:5011
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zhendong.su at inf dot ethz.ch
Target Milestone: ---
It appears to be a recent regression from 12.2.
Compiler Explorer: https://godbolt.org/z/dcTPb13on
[550] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk
--enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib
--with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20221130 (experimental) [master r13-4400-g84046b192e5] (GCC)
[551] %
[551] % gcctk -O2 small.c; ./a.out
[552] %
[552] % gcctk -O3 small.c
during GIMPLE pass: fre
small.c: In function ‘main’:
small.c:2:5: internal compiler error: in set_ssa_val_to, at
tree-ssa-sccvn.cc:5011
2 | int main() {
| ^~~~
0x7773f7 set_ssa_val_to
../../gcc-trunk/gcc/tree-ssa-sccvn.cc:5011
0x10b0358 visit_phi
../../gcc-trunk/gcc/tree-ssa-sccvn.cc:5962
0x10bbd8a process_bb
../../gcc-trunk/gcc/tree-ssa-sccvn.cc:7721
0x10bd6b2 do_rpo_vn_1
../../gcc-trunk/gcc/tree-ssa-sccvn.cc:8417
0x10beef6 execute
../../gcc-trunk/gcc/tree-ssa-sccvn.cc:8575
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[553] %
[553] % cat small.c
int *a, **b;
int main() {
int d = 0, *e = &d;
L:
*e = d;
if (a) {
int *g = e = *b;
if (!e)
__builtin_abort();
if (**b)
return 0;
*g = 1;
goto L;
}
return 0;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/107935] [13 Regression] ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011
2022-11-30 14:55 [Bug tree-optimization/107935] New: ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011 zhendong.su at inf dot ethz.ch
@ 2022-11-30 17:49 ` pinskia at gcc dot gnu.org
2022-12-01 7:33 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-30 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107935
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Version|unknown |13.0
Target Milestone|--- |13.0
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-11-30
Keywords| |ice-on-valid-code
Summary|ICE on valid code at -O3: |[13 Regression] ICE on
|in set_ssa_val_to, at |valid code at -O3: in
|tree-ssa-sccvn.cc:5011 |set_ssa_val_to, at
| |tree-ssa-sccvn.cc:5011
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/107935] [13 Regression] ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011
2022-11-30 14:55 [Bug tree-optimization/107935] New: ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011 zhendong.su at inf dot ethz.ch
2022-11-30 17:49 ` [Bug tree-optimization/107935] [13 Regression] " pinskia at gcc dot gnu.org
@ 2022-12-01 7:33 ` rguenth at gcc dot gnu.org
2022-12-01 9:19 ` cvs-commit at gcc dot gnu.org
2022-12-01 9:19 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-01 7:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107935
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/107935] [13 Regression] ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011
2022-11-30 14:55 [Bug tree-optimization/107935] New: ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011 zhendong.su at inf dot ethz.ch
2022-11-30 17:49 ` [Bug tree-optimization/107935] [13 Regression] " pinskia at gcc dot gnu.org
2022-12-01 7:33 ` rguenth at gcc dot gnu.org
@ 2022-12-01 9:19 ` cvs-commit at gcc dot gnu.org
2022-12-01 9:19 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-12-01 9:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107935
--- Comment #3 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:8629f212af0acb113879d0bc45291c54743790f1
commit r13-4436-g8629f212af0acb113879d0bc45291c54743790f1
Author: Richard Biener <rguenther@suse.de>
Date: Thu Dec 1 09:01:20 2022 +0100
tree-optimization/107935 - fixup equivalence handling in PHI VN
The following makes sure to honor the backedge processing logic
that forces VARYING there.
PR tree-optimization/107935
* tree-ssa-sccvn.cc (visit_phi): Honor forced VARYING on
backedges.
* gcc.dg/torture/pr107935.c: New testcase.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/107935] [13 Regression] ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011
2022-11-30 14:55 [Bug tree-optimization/107935] New: ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011 zhendong.su at inf dot ethz.ch
` (2 preceding siblings ...)
2022-12-01 9:19 ` cvs-commit at gcc dot gnu.org
@ 2022-12-01 9:19 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-01 9:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107935
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-01 9:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 14:55 [Bug tree-optimization/107935] New: ICE on valid code at -O3: in set_ssa_val_to, at tree-ssa-sccvn.cc:5011 zhendong.su at inf dot ethz.ch
2022-11-30 17:49 ` [Bug tree-optimization/107935] [13 Regression] " pinskia at gcc dot gnu.org
2022-12-01 7:33 ` rguenth at gcc dot gnu.org
2022-12-01 9:19 ` cvs-commit at gcc dot gnu.org
2022-12-01 9:19 ` 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).