http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50335
--- Comment #8 from sebpop at gmail dot com <sebpop at gmail dot com> 2011-12-06 18:40:43 UTC --- Hi Maxim, Thanks for pointing me to this problem. I would recommend that you disable the code in loop flattening by early returning false in flatten_all_loops. I'm pre-approving you to commit such a patch (as I am not allowed to commit anything to gcc due to my new employer's legal policies, although emailing or giving instructions via a phone call to somebody of what to do seems to be fine for now ;-) Vladimir Kargov will take over where I left the patches to make graphite work with ISL and once these are committed to gcc, we will be able to implement loop flattening with ISL, by calling isl_map_flatten_range. Sebastian