https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78775
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- So either some games with TREE_VISITED, or keep some hash_set of visited SSA_NAMEs, or when scanning the PHI arguments, check whether its argument's definition is also a PHI and has OP in it?