Ignore no-ops in cprop pass.

From-SVN: r28901
This commit is contained in:
Bernd Schmidt 1999-08-26 17:33:35 +00:00 committed by Bernd Schmidt
parent 49b1e9eb96
commit 21e3a71724
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* gcse.c (hash_scan_insn): Don't scan obvious no-ops.
1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
* tree.h: fancy_abort always takes three args.

View File

@ -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;