diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-04 19:18:26 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-04 19:18:26 +0000 |
commit | 73c69c85b0a759eaf0b7d2209391a6988d2c02e2 (patch) | |
tree | f453b8a02cbc2986fcd1be8c613f6794d154c41e /gcc/config/bfin | |
parent | df4fadd539a3d5a76b2c160b97b9744f4508d0b2 (diff) | |
download | gcc-73c69c85b0a759eaf0b7d2209391a6988d2c02e2.tar.gz |
* 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
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r-- | gcc/config/bfin/bfin.c | 5 |
1 files changed, 5 insertions, 0 deletions
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]) { |