diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2009-10-05 17:46:35 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2009-10-05 10:46:35 -0700 |
commit | 2bd1d2c8d2d026168111295dc53d604856b74deb (patch) | |
tree | 76d28ac5e1fa941648deb5fd3f3b91d9ea13d6ee /gcc/tree-inline.c | |
parent | 4cdc876153cc0ddcda76174f868e1722f389be04 (diff) | |
download | gcc-2bd1d2c8d2d026168111295dc53d604856b74deb.zip gcc-2bd1d2c8d2d026168111295dc53d604856b74deb.tar.gz gcc-2bd1d2c8d2d026168111295dc53d604856b74deb.tar.bz2 |
re PR tree-optimization/40992 (cunroll ignoring asm size)
2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR tree-opt/40992
* final.c (asm_str_count): Split out from asm_insn_count.
* rtl.h (asm_str_count): New prototype.
* tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
asm_str_count.
From-SVN: r152458
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index e38da6d..91ed023 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -3346,7 +3346,7 @@ estimate_num_insns (gimple stmt, eni_weights *weights) return 0; case GIMPLE_ASM: - return 1; + return asm_str_count (gimple_asm_string (stmt)); case GIMPLE_RESX: /* This is either going to be an external function call with one |