isl_schedule.c: handle basic maps individually in setup_carry_lp
[platform/upstream/isl.git] / isl_ctx.c
index 4ea7a70..21108bf 100644 (file)
--- a/isl_ctx.c
+++ b/isl_ctx.c
@@ -65,7 +65,7 @@ isl_ctx *isl_ctx_alloc_with_options(struct isl_arg *arg, void *user_opt)
        if (!ctx)
                goto error;
 
-       if (isl_hash_table_init(ctx, &ctx->name_hash, 0))
+       if (isl_hash_table_init(ctx, &ctx->id_table, 0))
                goto error;
 
        ctx->stats = isl_calloc_type(ctx, struct isl_stats);
@@ -93,6 +93,7 @@ isl_ctx *isl_ctx_alloc_with_options(struct isl_arg *arg, void *user_opt)
        isl_int_init(ctx->normalize_gcd);
 
        ctx->n_cached = 0;
+       ctx->n_miss = 0;
 
        ctx->error = isl_error_none;
 
@@ -130,7 +131,7 @@ void isl_ctx_free(struct isl_ctx *ctx)
        if (!ctx)
                return;
        isl_assert(ctx, ctx->ref == 0, return);
-       isl_hash_table_clear(&ctx->name_hash);
+       isl_hash_table_clear(&ctx->id_table);
        isl_blk_clear_cache(ctx);
        isl_int_clear(ctx->zero);
        isl_int_clear(ctx->one);