Commit 21e3a717 by Bernd Schmidt Committed by Bernd Schmidt

Ignore no-ops in cprop pass.

From-SVN: r28901
parent 49b1e9eb
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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment