Commit 4a4b6c4c by Tom de Vries Committed by Tom de Vries

Fix transform_to_exit_first_loop_alt with -g

2015-11-06  Tom de Vries  <tom@codesourcery.com>

	* tree-cfg.c (gimple_split_block_before_cond_jump): Split before
	cond_jump, instead of split after last nondebug insn before cond_jump.
	* tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
	returning.

From-SVN: r229847
parent c9aa6b94
2015-11-06 Tom de Vries <tom@codesourcery.com>
* tree-cfg.c (gimple_split_block_before_cond_jump): Split before
cond_jump, instead of split after last nondebug insn before cond_jump.
* tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
returning.
2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/68088 PR target/68088
...@@ -5783,7 +5783,7 @@ gimple_split_block_before_cond_jump (basic_block bb) ...@@ -5783,7 +5783,7 @@ gimple_split_block_before_cond_jump (basic_block bb)
if (gimple_code (last) != GIMPLE_COND if (gimple_code (last) != GIMPLE_COND
&& gimple_code (last) != GIMPLE_SWITCH) && gimple_code (last) != GIMPLE_SWITCH)
return NULL; return NULL;
gsi_prev_nondebug (&gsi); gsi_prev (&gsi);
split_point = gsi_stmt (gsi); split_point = gsi_stmt (gsi);
return split_block (bb, split_point)->dest; return split_block (bb, split_point)->dest;
} }
......
...@@ -1737,6 +1737,8 @@ transform_to_exit_first_loop_alt (struct loop *loop, ...@@ -1737,6 +1737,8 @@ transform_to_exit_first_loop_alt (struct loop *loop,
/* Recalculate dominance info. */ /* Recalculate dominance info. */
free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_DOMINATORS);
calculate_dominance_info (CDI_DOMINATORS); calculate_dominance_info (CDI_DOMINATORS);
checking_verify_ssa (true, true);
} }
/* Tries to moves the exit condition of LOOP to the beginning of its header /* Tries to moves the exit condition of LOOP to the beginning of its header
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment