Commit 2c1a285e authored by Matthias Braun's avatar Matthias Braun
Browse files

bespillslots: do not create affinity edges for self-loops

parent 34f56b94
......@@ -133,6 +133,9 @@ static spill_t *collect_spill(be_fec_env_t *env, ir_node *node,
if (is_Phi(node)) {
foreach_irn_in(node, i, arg) {
/* ignore obvious self-loops */
if (arg == node)
continue;
affinity_edge_t *affinty_edge;
spill_t *arg_spill = collect_spill(env, arg, mode, align);
ir_node *block = get_nodes_block(arg);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment