]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Jun 2002 19:31:01 +0000 (19:31 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Jun 2002 19:31:01 +0000 (19:31 +0000)
        sharing of hard registers.

        * toplev.c (rest_of_compilation): Remove redundant conditional.

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

gcc/ChangeLog
gcc/emit-rtl.c
gcc/toplev.c

index 61b694dc278b04273f5af78283a2acca2f9ffc29..0dfb95c569e69c679a0484974657c9b6ed24538f 100644 (file)
 
 2002-06-16  Jeff Law <law@redhat.com>
 
+       * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
+       sharing of hard registers.
+
+       * toplev.c (rest_of_compilation): Remove redundant conditional.
+
        * toplev.c (rest_of_compilation): Perform a simpler, less costly
        cleanup of the CFG when not optimizing.
 
index 5186c854dc38ff5b466b08b9deb07df01d01e05d..225b8c89332a16ce879d4eb4ac66189a2e6505cd 100644 (file)
@@ -533,14 +533,21 @@ gen_rtx_REG (mode, regno)
        return stack_pointer_rtx;
     }
 
+#if 0
   /* If the per-function register table has been set up, try to re-use
-     an existing entry in that table to avoid useless generation of RTL.  */
+     an existing entry in that table to avoid useless generation of RTL.
+
+     This code is disabled for now until we can fix the various backends
+     which depend on having non-shared hard registers in some cases.   Long
+     term we want to re-enable this code as it can significantly cut down
+     on the amount of useless RTL that gets generated.  */
   if (cfun
       && cfun->emit
       && regno_reg_rtx
       && regno < FIRST_PSEUDO_REGISTER
       && reg_raw_mode[regno] == mode)
     return regno_reg_rtx[regno];
+#endif
 
   return gen_raw_REG (mode, regno);
 }
index 7c1e0d68d6d7a477a0c5a2c738639824ea834304..cbdb8ffa732e06af7def21f4dc9fc119136ed2f3 100644 (file)
@@ -2779,9 +2779,8 @@ rest_of_compilation (decl)
        {
          timevar_push (TV_JUMP);
 
-         if (flag_delete_null_pointer_checks)
-           if (delete_null_pointer_checks (insns))
-             cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP);
+         if (delete_null_pointer_checks (insns))
+           cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP);
          timevar_pop (TV_JUMP);
        }