GCC trunk gets a ICE when building SPEC CPU2000 test 176.gcc with "-O2 -fmodulo-sched -fselective-scheduling" as demonstrated by a minimized testcase that I'll attach to this PR.
elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/gcc -O2 -fmodulo-sched -fselective-scheduling -c bug.c bug.c: In function unroll_loop: bug.c:63:1: internal compiler error: in move_bb_info, at sel-sched-ir.c:4968 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. The ICE begins with this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=153491 r153491 | rguenth | 2009-10-23 09:34:46 +0000 (Fri, 23 Oct 2009) -- Summary: ICE in move_bb_info with sel-sched and modulo-sched for 176.gcc Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janis at gcc dot gnu dot org GCC target triplet: powerpc64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42388