Commit cd227334 authored by nathan's avatar nathan
Browse files

* config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107821 138bc75d-0d04-0410-961f-82ee72b054a4
parent dbd44b25
2005-12-01 Nathan Sidwell <nathan@codesourcery.com>
* config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
* vec.h (VEC_block_remove): New.
2005-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
......
......@@ -1915,7 +1915,16 @@ ms1_reorg_hazard (void)
break;
}
}
count -= INSN_CODE (prev) >= 0;
if (INSN_CODE (prev) >= 0)
{
rtx set = single_set (prev);
/* A noop set will get deleted in a later split pass,
so we can't count on it for hazard avoidance. */
if (!set || !set_noop_p (set))
count--;
}
}
if (rescan)
......
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