diff options
author | Rask Ingemann Lambertsen <rask@sygehus.dk> | 2007-07-03 14:45:31 +0200 |
---|---|---|
committer | Rask Ingemann Lambertsen <rask@gcc.gnu.org> | 2007-07-03 12:45:31 +0000 |
commit | b6bcd67696f64c2ad33633be8657609068581dca (patch) | |
tree | ca91ad22f8d40d6658b10562b24c4d35c5c632d1 /gcc | |
parent | 8cec1624c5c14ad76268cb1c21fa2c5e770bbeb7 (diff) | |
download | gcc-b6bcd67696f64c2ad33633be8657609068581dca.zip gcc-b6bcd67696f64c2ad33633be8657609068581dca.tar.gz gcc-b6bcd67696f64c2ad33633be8657609068581dca.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/combine.c | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b9b245..b21e230 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> * ddg.c (print_sccs): New function. diff --git a/gcc/combine.c b/gcc/combine.c index 5cf65ba..01badc35 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; |