diff options
author | Richard Guenther <rguenther@suse.de> | 2012-02-24 12:47:56 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-02-24 12:47:56 +0000 |
commit | b9af73fca3e2e71b67880731f9be888e0445e9de (patch) | |
tree | 5bf77ec7639aa0b5fc27763151dd1b71c3daae43 /gcc/gimple.h | |
parent | 6ae4eccdca78d0a584dcabbd84f6876c8b871e37 (diff) | |
download | gcc-b9af73fca3e2e71b67880731f9be888e0445e9de.zip gcc-b9af73fca3e2e71b67880731f9be888e0445e9de.tar.gz gcc-b9af73fca3e2e71b67880731f9be888e0445e9de.tar.bz2 |
re PR tree-optimization/52361 (gcc.dg/pr48141.c times out with checking enabled)
2012-02-24 Richard Guenther <rguenther@suse.de>
PR middle-end/52361
* gimple.c (walk_gimple_op): Use predicates with less redundant
tests.
(is_gimple_reg_type): Move inline ...
* gimple.h (is_gimple_reg_type): ... here.
From-SVN: r184552
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index ec32f25..b2b345e 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -963,8 +963,6 @@ tree gimple_extract_devirt_binfo_from_cst (tree); /* Returns true iff T is a valid GIMPLE statement. */ extern bool is_gimple_stmt (tree); -/* Returns true iff TYPE is a valid type for a scalar register variable. */ -extern bool is_gimple_reg_type (tree); /* Returns true iff T is a scalar register variable. */ extern bool is_gimple_reg (tree); /* Returns true iff T is any sort of variable. */ @@ -4838,6 +4836,13 @@ gimple_expr_type (const_gimple stmt) return void_type_node; } +/* Return true if TYPE is a suitable type for a scalar register variable. */ + +static inline bool +is_gimple_reg_type (tree type) +{ + return !AGGREGATE_TYPE_P (type); +} /* Return a new iterator pointing to GIMPLE_SEQ's first statement. */ |