From: Nathan Sidwell Date: Thu, 1 Dec 2005 15:03:23 +0000 (+0000) Subject: * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves. X-Git-Tag: releases/gcc-4.2.0~5640 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96fd03a4d5c51d70222b2a2470699dfc52ee8d10;p=thirdparty%2Fgcc.git * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves. From-SVN: r107821 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17808f0f7387..28a1856011ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2005-12-01 Nathan Sidwell + * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves. + * vec.h (VEC_block_remove): New. 2005-12-01 Gabriel Dos Reis diff --git a/gcc/config/ms1/ms1.c b/gcc/config/ms1/ms1.c index 19f02a1c7469..9bc5138d4c3b 100644 --- a/gcc/config/ms1/ms1.c +++ b/gcc/config/ms1/ms1.c @@ -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)