Commit 1c7926f6 by Segher Boessenkool Committed by Segher Boessenkool

shrink-wrap: Fix problem with DF checking (PR78400)

With my previous patch the compiler ICEs if you use --enable-checking=df.
This patch fixes it, by calling df_update_entry_exit_and_calls instead of
df_update_entry_block_defs and df_update_exit_block_uses.


	PR rtl-optimization/78400
	* shrink-wrap.c (try_shrink_wrapping_separate): Call
	df_update_entry_exit_and_calls instead of df_update_entry_block_defs
	and df_update_exit_block_uses.

From-SVN: r242663
parent 48330c93
2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
PR rtl-optimization/78400
* shrink-wrap.c (try_shrink_wrapping_separate): Call
df_update_entry_exit_and_calls instead of df_update_entry_block_defs
and df_update_exit_block_uses.
2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c++/71973 PR c++/71973
...@@ -1687,8 +1687,7 @@ try_shrink_wrapping_separate (basic_block first_bb) ...@@ -1687,8 +1687,7 @@ try_shrink_wrapping_separate (basic_block first_bb)
the register for that component is in the IN or GEN or KILL set for the register for that component is in the IN or GEN or KILL set for
that block. */ that block. */
df_scan->local_flags |= DF_SCAN_EMPTY_ENTRY_EXIT; df_scan->local_flags |= DF_SCAN_EMPTY_ENTRY_EXIT;
df_update_entry_block_defs (); df_update_entry_exit_and_calls ();
df_update_exit_block_uses ();
df_live_add_problem (); df_live_add_problem ();
df_live_set_all_dirty (); df_live_set_all_dirty ();
df_analyze (); df_analyze ();
...@@ -1756,8 +1755,7 @@ try_shrink_wrapping_separate (basic_block first_bb) ...@@ -1756,8 +1755,7 @@ try_shrink_wrapping_separate (basic_block first_bb)
/* All done. */ /* All done. */
df_scan->local_flags &= ~DF_SCAN_EMPTY_ENTRY_EXIT; df_scan->local_flags &= ~DF_SCAN_EMPTY_ENTRY_EXIT;
df_update_entry_block_defs (); df_update_entry_exit_and_calls ();
df_update_exit_block_uses ();
df_live_set_all_dirty (); df_live_set_all_dirty ();
df_analyze (); df_analyze ();
} }
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