]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(jump_optimize): When deleting unneeded stack adjusts or mem-mem
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 29 May 1994 20:24:15 +0000 (16:24 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 29 May 1994 20:24:15 +0000 (16:24 -0400)
copies, use delete_computation.

From-SVN: r7385

gcc/jump.c

index 834bbce0f7692210637b9e7d68dcea5d21c12445..40258a5c0a2771d2228ea8184e30d0959d227d50 100644 (file)
@@ -362,7 +362,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
                   maybe eliminate it entirely.  */
                if (total_pushed >= stack_adjust_amount)
                  {
-                   delete_insn (stack_adjust_insn);
+                   delete_computation (stack_adjust_insn);
                    total_pushed = stack_adjust_amount;
                  }
                else
@@ -416,7 +416,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
                      && MEM_VOLATILE_P (SET_DEST (body)))
                && ! (GET_CODE (SET_SRC (body)) == MEM
                      && MEM_VOLATILE_P (SET_SRC (body))))
-             delete_insn (insn);
+             delete_computation (insn);
 
            /* Detect and ignore no-op move instructions
               resulting from smart or fortuitous register allocation.  */