dce.c (run_word_dce): Take flag_dce into account.

* dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
	df flags as in run_fast_df_dce.

From-SVN: r162697
This commit is contained in:
Bernd Schmidt 2010-07-29 23:48:24 +00:00 committed by Bernd Schmidt
parent 6a0184955c
commit 25aef556b4
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
* dce.c (run_word_dce): Take flag_dce into account. Clear and restore
df flags as in run_fast_df_dce.
2010-07-29 Jakub Jelinek <jakub@redhat.com>
Revert:

View file

@ -1025,11 +1025,18 @@ rest_of_handle_fast_dce (void)
void
run_word_dce (void)
{
int old_flags;
if (!flag_dce)
return;
timevar_push (TV_DCE);
old_flags = df_clear_flags (DF_DEFER_INSN_RESCAN + DF_NO_INSN_RESCAN);
df_word_lr_add_problem ();
init_dce (true);
fast_dce (true);
fini_dce (true);
df_set_flags (old_flags);
timevar_pop (TV_DCE);
}