https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99627

            Bug ID: 99627
           Summary: ICE:in sel_is_loop_preheader_p, at sel-sched-ir.c:6347
                    with -fprofile-use -fselective-scheduling
                    -fsel-sched-pipelining
                    -fsel-sched-pipelining-outer-loops -O3
                    -fno-strict-aliasing
           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: ---

Another selective scheduler's bug with profiling feedback from CPU2017.
reduced testing case attached.

to reproduce:

download the *.tar.xz file;
untar it;
cd bug_4
sh t

qinzhao@gcc113:~/Bugs/bug_4$ sh t
during RTL pass: sched1
cfgloop.h: In function ‘loop_optimizer_finalize’:
cfgloop.h:41:1: internal compiler error: in sel_is_loop_preheader_p, at
sel-sched-ir.c:6347
0xcb24b3 sel_is_loop_preheader_p(basic_block_def*)
        ../../latest_gcc/gcc/sel-sched-ir.c:6347
0xcc5307 sel_sched_region_1
        ../../latest_gcc/gcc/sel-sched.c:7588
0xcc68bb sel_sched_region(int)
        ../../latest_gcc/gcc/sel-sched.c:7634
0xcc68bb sel_sched_region(int)
        ../../latest_gcc/gcc/sel-sched.c:7619
0xcc6ae7 run_selective_scheduling()
        ../../latest_gcc/gcc/sel-sched.c:7720
0xca511f rest_of_handle_sched
        ../../latest_gcc/gcc/sched-rgn.c:3724
0xca511f execute
        ../../latest_gcc/gcc/sched-rgn.c:3834
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.

Reply via email to