From: bernds Date: Thu, 4 Sep 2008 19:18:26 +0000 (+0000) Subject: * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when X-Git-Tag: upstream/4.9.2~39871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73c69c85b0a759eaf0b7d2209391a6988d2c02e2;p=platform%2Fupstream%2Flinaro-gcc.git * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when optimizing for size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139999 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9eebb07..9146cfb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-09-04 Bernd Schmidt + + * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when + optimizing for size. + 2008-09-04 Richard Sandiford * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 90a6788..8e0f355 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -4457,6 +4457,11 @@ gen_one_bundle (rtx slot[3]) { gcc_assert (slot[1] != NULL_RTX); + /* Don't add extra NOPs if optimizing for size. */ + if (optimize_size + && (slot[0] == NULL_RTX || slot[2] == NULL_RTX)) + return false; + /* Verify that we really can do the multi-issue. */ if (slot[0]) {