Commit e7180acb by Mike Stump Committed by Mike Stump

* web.c (union_match_dups): Also check DF_REF_REAL_LOC.

From-SVN: r198896
parent fd6beed4
2013-05-14 Mike Stump <mikestump@comcast.net>
* web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2013-05-14 Steven Bosscher <steven@gcc.gnu.org> 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
* resource.h (struct resources): Remove unch_memory member. * resource.h (struct resources): Remove unch_memory member.
......
...@@ -132,14 +132,22 @@ union_match_dups (rtx insn, struct web_entry *def_entry, ...@@ -132,14 +132,22 @@ union_match_dups (rtx insn, struct web_entry *def_entry,
ref = type == OP_IN ? use_link : def_link; ref = type == OP_IN ? use_link : def_link;
entry = type == OP_IN ? use_entry : def_entry; entry = type == OP_IN ? use_entry : def_entry;
for (; *ref; ref++) for (; *ref; ref++)
if (DF_REF_LOC (*ref) == recog_data.operand_loc[op]) {
break; if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
break;
if (DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op])
break;
}
if (!*ref && type == OP_INOUT) if (!*ref && type == OP_INOUT)
{ {
for (ref = use_link, entry = use_entry; *ref; ref++) for (ref = use_link, entry = use_entry; *ref; ref++)
if (DF_REF_LOC (*ref) == recog_data.operand_loc[op]) {
break; if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
break;
if (DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op])
break;
}
} }
gcc_assert (*ref); gcc_assert (*ref);
......
Markdown is supported
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