https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122502
Bug ID: 122502
Summary: [16 Regression] gcc.dg/graphite/pr82819.c ICEs at -O2
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
```
<simdclone> {heap 1804k} c2during GIMPLE pass: sccp
t.c: In function ‘c2’:
t.c:7:1: internal compiler error: Segmentation fault
7 | c2 (unsigned long long int s4, int ns)
| ^~
0x274883f internal_error(char const*, ...)
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:787
0x126bc6f crash_signal
/home/apinski/src/upstream-gcc-git/gcc/gcc/toplev.cc:323
0xe944fd bool is_a_helper<gphi*>::test<gimple>(gimple*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple.h:1263
0xe944fd bool is_a<gphi*, gimple>(gimple*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/is-a.h:232
0xe944fd gimple_infer_range::gimple_infer_range(gimple*, range_query*, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-infer.cc:165
0xe96327 infer_range_manager::register_all_uses(tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-infer.cc:516
0xe9649a infer_range_manager::has_range_p(basic_block_def*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-infer.cc:389
0xe964dc infer_range_manager::maybe_adjust_range(vrange&, tree_node*,
basic_block_def*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-infer.cc:409
0xe7a2c4 ranger_cache::range_from_dom(vrange&, tree_node*, basic_block_def*,
ranger_cache::rfd_mode)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-cache.cc:1736
0xe7c3fe ranger_cache::range_from_dom(vrange&, tree_node*, basic_block_def*,
ranger_cache::rfd_mode)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-cache.cc:1703
0xe7c3fe ranger_cache::fill_block_cache(tree_node*, basic_block_def*,
basic_block_def*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-cache.cc:1486
0xe7e088 ranger_cache::block_range(vrange&, basic_block_def*, tree_node*, bool)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-cache.cc:1313
0xe70837 gimple_ranger::range_on_entry(vrange&, basic_block_def*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range.cc:174
0xe70b5a gimple_ranger::range_on_exit(vrange&, basic_block_def*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range.cc:213
0xe74243 gimple_ranger::range_on_edge(vrange&, edge_def*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range.cc:258
0xe83e1d fold_using_range::range_of_phi(vrange&, gphi*, fur_source&)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-fold.cc:926
0xe881c0 fold_using_range::fold_stmt(vrange&, gimple*, fur_source&, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range-fold.cc:651
0xe71445 gimple_ranger::fold_range_internal(vrange&, gimple*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range.cc:282
0xe71445 gimple_ranger::prefill_stmt_dependencies(tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range.cc:421
0xe7234a gimple_ranger::range_of_stmt(vrange&, gimple*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-range.cc:339
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.
```
you don't need graphite to reproduce the ICE.