aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-05-29 16:24:15 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-05-29 16:24:15 -0400
commit344a822046c08d2cb6a80eada0dbcbcf77cb6a44 (patch)
tree32d5d8be41c0c6b1adba5703f748b75f4c3e54a3 /gcc
parent180b8e4bf18ce1f566afcef0fc1bc055c8c9946b (diff)
downloadgcc-344a822046c08d2cb6a80eada0dbcbcf77cb6a44.zip
gcc-344a822046c08d2cb6a80eada0dbcbcf77cb6a44.tar.gz
gcc-344a822046c08d2cb6a80eada0dbcbcf77cb6a44.tar.bz2
(jump_optimize): When deleting unneeded stack adjusts or mem-mem
copies, use delete_computation. From-SVN: r7385
Diffstat (limited to 'gcc')
-rw-r--r--gcc/jump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 834bbce..40258a5 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -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. */