From: rask Date: Tue, 3 Jul 2007 12:45:31 +0000 (+0000) Subject: * combine.c (recog_for_combine): Log the success or failure of X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f975d004e22a37c5c3e9f90b0d916ca363dea90;p=thirdparty%2Fgcc.git * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b9b2452df57..b21e2302a227 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-07-03 Rask Ingemann Lambertsen + + * 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 * ddg.c (print_sccs): New function. diff --git a/gcc/combine.c b/gcc/combine.c index 5cf65bae1920..01badc35719b 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;