Commit 58191b2e by Richard Guenther Committed by Richard Biener

tree-streamer.c (streamer_tree_cache_get): Move ...

2012-10-09  Richard Guenther  <rguenther@suse.de>

	* tree-streamer.c (streamer_tree_cache_get): Move ...
	* tree-streamer.h (streamer_tree_cache_get): ... here as inline.

From-SVN: r192252
parent 73367f92
2012-10-09 Richard Guenther <rguenther@suse.de>
* tree-streamer.c (streamer_tree_cache_get): Move ...
* tree-streamer.h (streamer_tree_cache_get): ... here as inline.
2012-10-09 Jan Hubicka <jh@suse.cz> 2012-10-09 Jan Hubicka <jh@suse.cz>
* loop-unroll.c (unroll_loop_constant_iterations): Add * loop-unroll.c (unroll_loop_constant_iterations): Add
......
...@@ -232,20 +232,6 @@ streamer_tree_cache_lookup (struct streamer_tree_cache_d *cache, tree t, ...@@ -232,20 +232,6 @@ streamer_tree_cache_lookup (struct streamer_tree_cache_d *cache, tree t,
} }
/* Return the tree node at slot IX in CACHE. */
tree
streamer_tree_cache_get (struct streamer_tree_cache_d *cache, unsigned ix)
{
gcc_assert (cache);
/* Make sure we're not requesting something we don't have. */
gcc_assert (ix < VEC_length (tree, cache->nodes));
return VEC_index (tree, cache->nodes, ix);
}
/* Record NODE in CACHE. */ /* Record NODE in CACHE. */
static void static void
......
...@@ -93,8 +93,16 @@ bool streamer_tree_cache_insert_at (struct streamer_tree_cache_d *, tree, ...@@ -93,8 +93,16 @@ bool streamer_tree_cache_insert_at (struct streamer_tree_cache_d *, tree,
void streamer_tree_cache_append (struct streamer_tree_cache_d *, tree); void streamer_tree_cache_append (struct streamer_tree_cache_d *, tree);
bool streamer_tree_cache_lookup (struct streamer_tree_cache_d *, tree, bool streamer_tree_cache_lookup (struct streamer_tree_cache_d *, tree,
unsigned *); unsigned *);
tree streamer_tree_cache_get (struct streamer_tree_cache_d *, unsigned);
struct streamer_tree_cache_d *streamer_tree_cache_create (void); struct streamer_tree_cache_d *streamer_tree_cache_create (void);
void streamer_tree_cache_delete (struct streamer_tree_cache_d *); void streamer_tree_cache_delete (struct streamer_tree_cache_d *);
/* Return the tree node at slot IX in CACHE. */
static inline tree
streamer_tree_cache_get (struct streamer_tree_cache_d *cache, unsigned ix)
{
return VEC_index (tree, cache->nodes, ix);
}
#endif /* GCC_TREE_STREAMER_H */ #endif /* GCC_TREE_STREAMER_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment