+2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
+
+ PR tree-optimization/66926,66951
+ * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
+ INNER_LOOP and fix up condition for renaming virtual operands.
+
2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* combine.c (try_combine): Use std::swap instead of manually
+2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
+
+ PR tree-optimization/66926,66951
+ * gcc.dg/vect/pr66951.c: New test.
+
2015-07-23 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52987
int bound1, int bound2)
{
struct loop *new_loop = NULL, *first_loop, *second_loop;
- struct loop *inner_loop = NULL;
edge skip_e;
tree pre_condition = NULL_TREE;
basic_block bb_before_second_loop, bb_after_second_loop;
if (!slpeel_can_duplicate_loop_p (loop, e))
return NULL;
- if (loop->inner)
- inner_loop = loop->inner;
-
/* We might have a queued need to update virtual SSA form. As we
delete the update SSA machinery below after doing a regular
incremental SSA update during loop copying make sure we don't
add_phi_arg (new_phi, vop, exit_e, UNKNOWN_LOCATION);
gimple_phi_set_result (new_phi, new_vop);
FOR_EACH_IMM_USE_STMT (stmt, imm_iter, vop)
- if (stmt != new_phi && gimple_bb (stmt) != loop->header
- /* Do not rename PHI arguments in inner-loop. */
- && (!inner_loop || gimple_bb (stmt) != inner_loop->header))
+ if (stmt != new_phi
+ && !flow_bb_inside_loop_p (loop, gimple_bb (stmt)))
FOR_EACH_IMM_USE_ON_STMT (use_p, imm_iter)
SET_USE (use_p, new_vop);
}