https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64121
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ah, indeed. So perhaps better replace the: 1565 base = gimple_assign_rhs1 (def_stmt); line in the loop with { tree rhs1 = gimple_assign_rhs1 (def_stmt); if (TREE_CODE (rhs1) == SSA_NAME && SSA_NAME_OCCURS_IN_ABNORMAL_PHI (rhs1)) break; else base = rhs1; } or so?