+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>
* loop-unroll.c (unroll_loop_constant_iterations): Add
}
-/* 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. */
static void
void streamer_tree_cache_append (struct streamer_tree_cache_d *, tree);
bool streamer_tree_cache_lookup (struct streamer_tree_cache_d *, tree,
unsigned *);
-tree streamer_tree_cache_get (struct streamer_tree_cache_d *, unsigned);
struct streamer_tree_cache_d *streamer_tree_cache_create (void);
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 */