]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* toplev.c (rest_of_compilation): Simplify (and correct) the
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jun 2002 17:20:01 +0000 (17:20 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jun 2002 17:20:01 +0000 (17:20 +0000)
logic of the first delete-null-pointer-checks pass.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54593 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c

index c4f17239bc4b5810a2fc54ed0b12da303993440c..8dcf4bc711658e66600665613ed42e60f6f8c2ba 100644 (file)
@@ -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.
index 388954ec8a6755a3e5bcfbf0f7ed28bd611c5ade..c878d57fc75f94307db30d29d209b7a60f9be3f7 100644 (file)
@@ -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);