Avoid check for PHI, PI, PARAM and VAR nodes in BB started by a node with a single use-def edge (control edge)

This commit is contained in:
Dmitry Stogov 2023-06-07 10:27:41 +03:00
parent 3f009c2d5a
commit 70da8bef54

View File

@ -316,6 +316,7 @@ int ir_gcm(ir_ctx *ctx)
use_list = &ctx->use_lists[ref];
n = use_list->count;
if (n > 1) {
for (p = &ctx->use_edges[use_list->refs]; n > 0; n--, p++) {
ref = *p;
use_insn = &ctx->ir_base[ref];
@ -341,6 +342,7 @@ int ir_gcm(ir_ctx *ctx)
}
}
}
}
ir_list_init(&queue_rest, ctx->insns_count);