Only (IV - RC) is allowed for induction variables.
[libfirm] / ir / ana / dfs.c
index fbe7250..7addd1d 100644 (file)
@@ -61,7 +61,7 @@ static int cmp_node(const void *a, const void *b, size_t sz)
 
 static dfs_edge_t *get_edge(const dfs_t *self, const void *src, const void *tgt)
 {
-       unsigned hash = HASH_COMBINE(HASH_PTR(src), HASH_PTR(tgt));
+       unsigned hash = hash_combine(hash_ptr(src), hash_ptr(tgt));
        dfs_edge_t templ;
 
        templ.src = src;
@@ -207,6 +207,7 @@ dfs_t *dfs_new(const absgraph_t *graph_impl, void *graph_self)
 
 void dfs_free(dfs_t *dfs)
 {
+       obstack_free(&dfs->obst, NULL);
        del_set(dfs->nodes);
        del_set(dfs->edges);
        xfree(dfs->pre_order);