diff options
author | Richard Guenther <rguenther@suse.de> | 2012-02-24 12:47:56 +0000 |
---|---|---|
committer | Richard Guenther <rguenther@suse.de> | 2012-02-24 12:47:56 +0000 |
commit | 1d80f74120ae9815a286828873a0826ac6552a3b (patch) | |
tree | 5bf77ec7639aa0b5fc27763151dd1b71c3daae43 /gcc/gimple.h | |
parent | 3619c42c2924d8891a75a3eb79d2ecd0740f3bbb (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@184552 138bc75d-0d04-0410-961f-82ee72b054a4
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 ec32f2577a3..b2b345edfab 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. */ |