* tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Skip
renaming variables in new preheader if it's deleted.
From-SVN: r253579
+2017-10-10 Bin Cheng <bin.cheng@arm.com>
+
+ * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Skip
+ renaming variables in new preheader if it's deleted.
+
2017-10-10 Bin Cheng <bin.cheng@arm.com>
* tree-loop-distribution.c (struct partition): Remove unused field
loop_preheader_edge (new_loop)->src);
}
- for (unsigned i = 0; i < scalar_loop->num_nodes + 1; i++)
+ /* Skip new preheader since it's deleted if copy loop is added at entry. */
+ for (unsigned i = (at_exit ? 0 : 1); i < scalar_loop->num_nodes + 1; i++)
rename_variables_in_bb (new_bbs[i], duplicate_outer_loop);
if (scalar_loop != loop)