aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2003-07-02 15:06:57 +0000
committerMichael Matz <matz@suse.de>2003-07-02 15:06:57 +0000
commite6083a8ecfc92e1fd4398bb80a6d6a22bdef50f1 (patch)
tree05fa659eed847d84010fc47755dded933d277ce4
parent0dc5d77b43e6f8c2bde5666136730fa835037876 (diff)
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg00198.html
* ra-colorize.c (insert_coalesced_conflicts): Correctly handle self-conflicts. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/new-regalloc-branch@68838 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.RA4
-rw-r--r--gcc/ra-colorize.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog.RA b/gcc/ChangeLog.RA
index 4e984cec2a5..0cc332e9918 100644
--- a/gcc/ChangeLog.RA
+++ b/gcc/ChangeLog.RA
@@ -1,4 +1,8 @@
2003-06-30 Michael Matz <matz@suse.de>
+ * ra-colorize.c (insert_coalesced_conflicts): Correctly handle
+ self-conflicts.
+
+2003-06-30 Michael Matz <matz@suse.de>
* ra-build.c (determine_web_costs): Use copy_cost instead assuming
memory move cost or constant cost. Adjust heuristics to deal with
spill temps and zero frequencies. Penalize webs used in compares.
diff --git a/gcc/ra-colorize.c b/gcc/ra-colorize.c
index 80e6e6ccf71..d29eb8ff031 100644
--- a/gcc/ra-colorize.c
+++ b/gcc/ra-colorize.c
@@ -2050,7 +2050,7 @@ insert_coalesced_conflicts ()
web conflicts with it's alias (see
non_conflicting_for_combine). In that case we come here
with tweb and wl->t being equal. */
- && tweb->id != wl->t->id
+ && tweb->id != alias (wl->t)->id
&& hard_regs_intersect_p (&tweb->usable_regs,
&wl->t->usable_regs))
{