Commit b6bcd676 by Rask Ingemann Lambertsen Committed by Rask Ingemann Lambertsen

combine.c (recog_for_combine): Log the success or failure of matching new insn…

combine.c (recog_for_combine): Log the success or failure of matching new insn patterns against the machine...

	* combine.c (recog_for_combine): Log the success or failure of
	  matching new insn patterns against the machine description in
	  detailed dumps.

From-SVN: r126251
parent 8cec1624
2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
* combine.c (recog_for_combine): Log the success or failure of
matching new insn patterns against the machine description in
detailed dumps.
2007-07-03 Revital Eres <eres@il.ibm.com> 2007-07-03 Revital Eres <eres@il.ibm.com>
* ddg.c (print_sccs): New function. * ddg.c (print_sccs): New function.
......
...@@ -9665,6 +9665,14 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes) ...@@ -9665,6 +9665,14 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
REG_NOTES (insn) = 0; REG_NOTES (insn) = 0;
insn_code_number = recog (pat, insn, &num_clobbers_to_add); insn_code_number = recog (pat, insn, &num_clobbers_to_add);
if (dump_file && (dump_flags & TDF_DETAILS))
{
if (insn_code_number < 0)
fputs ("Failed to match this instruction:\n", dump_file);
else
fputs ("Successfully matched this instruction:\n", dump_file);
print_rtl_single (dump_file, pat);
}
/* If it isn't, there is the possibility that we previously had an insn /* If it isn't, there is the possibility that we previously had an insn
that clobbered some register as a side effect, but the combined that clobbered some register as a side effect, but the combined
...@@ -9691,6 +9699,14 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes) ...@@ -9691,6 +9699,14 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
PATTERN (insn) = pat; PATTERN (insn) = pat;
insn_code_number = recog (pat, insn, &num_clobbers_to_add); insn_code_number = recog (pat, insn, &num_clobbers_to_add);
if (dump_file && (dump_flags & TDF_DETAILS))
{
if (insn_code_number < 0)
fputs ("Failed to match this instruction:\n", dump_file);
else
fputs ("Successfully matched this instruction:\n", dump_file);
print_rtl_single (dump_file, pat);
}
} }
PATTERN (insn) = old_pat; PATTERN (insn) = old_pat;
REG_NOTES (insn) = old_notes; REG_NOTES (insn) = old_notes;
......
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