mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 08:30:35 +08:00
tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target partition to conflict_graph_merge_regs.
* tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target partition to conflict_graph_merge_regs. From-SVN: r92157
This commit is contained in:
parent
acb3f79a4a
commit
ff1c708e4a
@ -1,3 +1,8 @@
|
||||
2004-12-14 Jeff Law <law@redhat.com>
|
||||
|
||||
* tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
|
||||
partition to conflict_graph_merge_regs.
|
||||
|
||||
2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
|
||||
Janis Johnson <janis187@us.ibm.com>
|
||||
|
||||
|
@ -569,7 +569,7 @@ coalesce_abnormal_edges (var_map map, conflict_graph graph, root_var_p rv)
|
||||
basic_block bb;
|
||||
edge e;
|
||||
tree phi, var, tmp;
|
||||
int x, y;
|
||||
int x, y, z;
|
||||
edge_iterator ei;
|
||||
|
||||
/* Code cannot be inserted on abnormal edges. Look for all abnormal
|
||||
@ -641,8 +641,9 @@ coalesce_abnormal_edges (var_map map, conflict_graph graph, root_var_p rv)
|
||||
"ABNORMAL: Coalescing ",
|
||||
var, " and ", tmp);
|
||||
}
|
||||
z = var_union (map, var, tmp);
|
||||
#ifdef ENABLE_CHECKING
|
||||
if (var_union (map, var, tmp) == NO_PARTITION)
|
||||
if (z == NO_PARTITION)
|
||||
{
|
||||
print_exprs_edge (stderr, e, "\nUnable to coalesce",
|
||||
partition_to_var (map, x), " and ",
|
||||
@ -650,9 +651,13 @@ coalesce_abnormal_edges (var_map map, conflict_graph graph, root_var_p rv)
|
||||
internal_error ("SSA corruption");
|
||||
}
|
||||
#else
|
||||
gcc_assert (var_union (map, var, tmp) != NO_PARTITION);
|
||||
gcc_assert (z != NO_PARTITION);
|
||||
#endif
|
||||
conflict_graph_merge_regs (graph, x, y);
|
||||
gcc_assert (z == x || z == y);
|
||||
if (z == x)
|
||||
conflict_graph_merge_regs (graph, x, y);
|
||||
else
|
||||
conflict_graph_merge_regs (graph, y, x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user