https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77362
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 40623 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40623&action=edit Patch candidate The patch fixes issue, however I believe that PHI handling is in general broken in graphite since r236440. This PR is very similar to PR71351. Both are confused by PHI nodes created by LIM.