projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc61c0
)
(jump_optimize): Don't delete dead insn if it has a REG_RETVAL note.
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 14 Jun 1994 21:32:30 +0000
(17:32 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 14 Jun 1994 21:32:30 +0000
(17:32 -0400)
From-SVN: r7458
gcc/jump.c
patch
|
blob
|
history
diff --git
a/gcc/jump.c
b/gcc/jump.c
index
05938d2
..
08130db
100644
(file)
--- a/
gcc/jump.c
+++ b/
gcc/jump.c
@@
-550,7
+550,8
@@
jump_optimize (f, cross_jump, noop_moves, after_regscan)
of a reg that's used in notes. A subsequent optimization
might arrange to use that reg for real. */
&& regno_last_note_uid[REGNO (SET_DEST (set))] == INSN_UID (insn)
- && ! side_effects_p (SET_SRC (set)))
+ && ! side_effects_p (SET_SRC (set))
+ && ! find_reg_note (insn, REG_RETVAL, 0))
delete_insn (insn);
}