tree ldef = PHI_ARG_DEF_FROM_EDGE (phi, latch);
if (TREE_CODE (ldef) != SSA_NAME
|| SSA_NAME_IS_DEFAULT_DEF (ldef)
+ || is_a <gphi *> (SSA_NAME_DEF_STMT (ldef))
|| !flow_bb_inside_loop_p (loop, gimple_bb (SSA_NAME_DEF_STMT (ldef))))
return false;
vectorized the latch definition. */
edge le = loop_latch_edge (LOOP_VINFO_LOOP (loop_vinfo));
gimple *latch_def = SSA_NAME_DEF_STMT (PHI_ARG_DEF_FROM_EDGE (phi, le));
- gimple_stmt_iterator gsi2;
- if (is_a <gphi *> (latch_def))
- gsi2 = gsi_after_labels (gimple_bb (latch_def));
- else
- {
- gsi2 = gsi_for_stmt (latch_def);
- gsi_next (&gsi2);
- }
+ gimple_stmt_iterator gsi2 = gsi_for_stmt (latch_def);
+ gsi_next (&gsi2);
for (unsigned i = 0; i < ncopies; ++i)
{