http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54455
--- Comment #12 from Zdenek Sojka <zsojka at seznam dot cz> 2012-09-03 10:17:15 UTC --- If I remember correctly, the original testcase ICEs the same way with -O. eg. $ gcc -fschedule-insns -fselective-scheduling --param max-sched-extend-regions-iters=8 gcc.c-torture/compile/pr51767.c -O This reduced testcase ICEs at a different place with -O. (I cannot test it right now)