diff options
author | Roger Sayle <roger@eyesopen.com> | 2002-06-13 17:20:01 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2002-06-13 11:20:01 -0600 |
commit | 2181005d64708308669a313b927e334047d5d2d7 (patch) | |
tree | d130b650824c7aaf0bf776cb5d443425195735be /gcc | |
parent | 6d61f1bd1c42a23426b65a64cedccb34ad962935 (diff) | |
download | gcc-2181005d64708308669a313b927e334047d5d2d7.zip gcc-2181005d64708308669a313b927e334047d5d2d7.tar.gz gcc-2181005d64708308669a313b927e334047d5d2d7.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/toplev.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4f1723..8dcf4bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * i386.c (ix86_expand_movstr): Fix pasto. diff --git a/gcc/toplev.c b/gcc/toplev.c index 388954e..c878d57 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2720,17 +2720,16 @@ rest_of_compilation (decl) } 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); if (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. */ - if (flag_delete_null_pointer_checks) - delete_null_pointer_checks (insns); + delete_null_pointer_checks (insns); cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP); close_dump_file (DFI_null, print_rtl_with_bb, insns); |