Commit 2181005d by Roger Sayle Committed by Jeff Law

toplev.c (rest_of_compilation): Simplify (and correct) the logic of the first…

toplev.c (rest_of_compilation): Simplify (and correct) the logic of the first delete-null-pointer-checks pass.

	* toplev.c (rest_of_compilation): Simplify (and correct) the
	logic of the first delete-null-pointer-checks pass.

From-SVN: r54593
parent 6d61f1bd
2002-06-13 Roger Sayle <roger@eyesopen.com>
* toplev.c (rest_of_compilation): Simplify (and correct) the
logic of the first delete-null-pointer-checks pass.
Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz> Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.c (ix86_expand_movstr): Fix pasto. * i386.c (ix86_expand_movstr): Fix pasto.
......
...@@ -2720,17 +2720,16 @@ rest_of_compilation (decl) ...@@ -2720,17 +2720,16 @@ rest_of_compilation (decl)
} }
timevar_push (TV_JUMP); timevar_push (TV_JUMP);
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP);
if (flag_delete_null_pointer_checks || flag_if_conversion) /* Try to identify useless null pointer tests and delete them. */
if (flag_delete_null_pointer_checks)
{ {
open_dump_file (DFI_null, decl); open_dump_file (DFI_null, decl);
if (rtl_dump_file) if (rtl_dump_file)
dump_flow_info (rtl_dump_file); dump_flow_info (rtl_dump_file);
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP);
/* Try to identify useless null pointer tests and delete them. */ delete_null_pointer_checks (insns);
if (flag_delete_null_pointer_checks)
delete_null_pointer_checks (insns);
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP); cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP);
close_dump_file (DFI_null, print_rtl_with_bb, insns); close_dump_file (DFI_null, print_rtl_with_bb, insns);
......
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