From 73c69c85b0a759eaf0b7d2209391a6988d2c02e2 Mon Sep 17 00:00:00 2001 From: bernds Date: Thu, 4 Sep 2008 19:18:26 +0000 Subject: [PATCH] * 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 --- gcc/ChangeLog | 5 +++++ gcc/config/bfin/bfin.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9eebb079394..9146cfb945a 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 90a67888b97..8e0f355d176 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]) { -- 2.11.4.GIT