* tree-ssa-dom.c (record_equivalences_from_phis): Do not
record symbolic equivalences from backedges in the CFG.
From-SVN: r255803
2017-12-18 Jeff Law <law@redhat.com>
+ * tree-ssa-dom.c (record_equivalences_from_phis): Do not
+ record symbolic equivalences from backedges in the CFG.
+
Revert
2017-11-19 Jeff Law <law@redhat.com>
t = dom_valueize (t);
+ /* If T is an SSA_NAME and its associated edge is a backedge,
+ then quit as we can not utilize this equivalence. */
+ if (TREE_CODE (t) == SSA_NAME
+ && (gimple_phi_arg_edge (phi, i)->flags & EDGE_DFS_BACK))
+ break;
+
/* If we have not processed an alternative yet, then set
RHS to this alternative. */
if (rhs == NULL)