summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-03 12:45:31 +0000
committerrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-03 12:45:31 +0000
commit0f975d004e22a37c5c3e9f90b0d916ca363dea90 (patch)
treeca91ad22f8d40d6658b10562b24c4d35c5c632d1 /gcc/combine.c
parent65ef61dfc4a0201e17748497f48590be90f02f9b (diff)
downloadgcc-0f975d004e22a37c5c3e9f90b0d916ca363dea90.tar.gz
* combine.c (recog_for_combine): Log the success or failure of
matching new insn patterns against the machine description in detailed dumps. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 5cf65bae192..01badc35719 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -9665,6 +9665,14 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
REG_NOTES (insn) = 0;
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
that clobbered some register as a side effect, but the combined
@@ -9691,6 +9699,14 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
PATTERN (insn) = pat;
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;
REG_NOTES (insn) = old_notes;