From 32f650e74753c46aa8145c074094b7ba47dae1e8 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 6 Jul 2015 12:05:48 +0200 Subject: [PATCH] isl_union_*_find_part_entry: use isl_space_get_domain_hash Signed-off-by: Sven Verdoolaege --- isl_union_templ.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/isl_union_templ.c b/isl_union_templ.c index 56d068fb..3a4399ea 100644 --- a/isl_union_templ.c +++ b/isl_union_templ.c @@ -206,18 +206,13 @@ static struct isl_hash_table_entry *FN(UNION,find_part_entry)( uint32_t hash; struct isl_hash_table_entry *entry; isl_bool equal; - isl_space *domain; PART *part; - if (!u) + if (!u || !space) return NULL; ctx = FN(UNION,get_ctx)(u); - domain = isl_space_domain(isl_space_copy(space)); - if (!domain) - return NULL; - hash = isl_space_get_hash(domain); - isl_space_free(domain); + hash = isl_space_get_domain_hash(space); entry = isl_hash_table_find(ctx, &u->table, hash, &FN(UNION,has_same_domain_space), space, reserve); if (!entry) -- 2.11.4.GIT