Commit d6545f29 by Mike Stump Committed by Mike Stump

web.c (union_match_dups): Ensure that DF_REF_LOC exists before accessing DF_REF_REAL_LOC.

	* web.c (union_match_dups): Ensure that DF_REF_LOC exists before
	accessing DF_REF_REAL_LOC.

From-SVN: r199029
parent 6db9ce91
2013-05-17 Mike Stump <mikestump@comcast.net>
* web.c (union_match_dups): Ensure that DF_REF_LOC exists before
accessing DF_REF_REAL_LOC.
2013-05-17 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/57281
......
......@@ -133,9 +133,10 @@ union_match_dups (rtx insn, struct web_entry *def_entry,
entry = type == OP_IN ? use_entry : def_entry;
for (; *ref; ref++)
{
if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
rtx *l = DF_REF_LOC (*ref);
if (l == recog_data.operand_loc[op])
break;
if (DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op])
if (l && DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op])
break;
}
......@@ -143,9 +144,10 @@ union_match_dups (rtx insn, struct web_entry *def_entry,
{
for (ref = use_link, entry = use_entry; *ref; ref++)
{
if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
rtx *l = DF_REF_LOC (*ref);
if (l == recog_data.operand_loc[op])
break;
if (DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op])
if (l && DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op])
break;
}
}
......
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