From: Bernd Schmidt Date: Thu, 26 Aug 1999 17:33:35 +0000 (+0000) Subject: Ignore no-ops in cprop pass. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21e3a717241e4b6f70b933212278db63c239563a;p=gcc.git Ignore no-ops in cprop pass. From-SVN: r28901 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b19980a6828..3351ad0c76a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 26 18:32:32 1999 Bernd Schmidt + + * gcse.c (hash_scan_insn): Don't scan obvious no-ops. + 1999-08-26 09:42 -0700 Zack Weinberg * tree.h: fancy_abort always takes three args. diff --git a/gcc/gcse.c b/gcc/gcse.c index 7a484ab2be7..3fa620a9c29 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -1919,7 +1919,11 @@ hash_scan_insn (insn, set_p, in_libcall_block) what's been modified. */ if (GET_CODE (pat) == SET && ! in_libcall_block) - hash_scan_set (pat, insn, set_p); + { + /* Ignore obvious no-ops. */ + if (SET_SRC (pat) != SET_DEST (pat)) + hash_scan_set (pat, insn, set_p); + } else if (GET_CODE (pat) == PARALLEL) { int i;