summaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-29 19:44:42 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-29 19:44:42 +0000
commit1805c35c62a9829b19eb9ea84ecdeedd8a46d53e (patch)
tree19cc9892c443cb833b456226ee6217fae10f6a91 /gcc/rtlanal.c
parentf0fe3b14c6cf97653c99de34ef7dc9cbd32a801b (diff)
downloadgcc-1805c35c62a9829b19eb9ea84ecdeedd8a46d53e.tar.gz
Suggested by Richard Henderson and Richard Kenner:
* combine.c (recog_for_combine): Use the fake recog only if instruction does not match. * rtl.h (NOOP_MOVE_INSN_CODE): New. * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE. * combine.c (try_combine): Discover noop jump as direct jump. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44464 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index c9152ab0f8e..92220f6467a 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -1030,6 +1030,9 @@ noop_move_p (insn)
{
rtx pat = PATTERN (insn);
+ if (INSN_CODE (insn) == NOOP_MOVE_INSN_CODE)
+ return 1;
+
/* Insns carrying these notes are useful later on. */
if (find_reg_note (insn, REG_EQUAL, NULL_RTX))
return 0;