summaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-07-29 21:44:42 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-07-29 19:44:42 +0000
commitb5832b43726d2d44b202c7a5669b3e97a2bc60c2 (patch)
tree19cc9892c443cb833b456226ee6217fae10f6a91 /gcc/rtlanal.c
parent12285d9df86f4fa4ece1667265fe129e25287907 (diff)
downloadgcc-b5832b43726d2d44b202c7a5669b3e97a2bc60c2.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. From-SVN: r44464
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;