mirror of
https://github.com/danog/ir.git
synced 2024-12-03 10:08:29 +01:00
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:
parent
3f009c2d5a
commit
70da8bef54
2
ir_gcm.c
2
ir_gcm.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user