From c4bab02661c2bf5afd18a2703b28a4c519775df6 Mon Sep 17 00:00:00 2001 From: prathamesh3492 Date: Fri, 16 Jan 2015 12:21:21 +0000 Subject: [PATCH] 2015-01-16 Prathamesh Kulkarni * genmatch.c (print_matches): Remove. (main): Inline calls to print_matches. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/match-and-simplify@219727 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/genmatch.c | 20 ++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b15ba27433d..2d49142a8a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-16 Prathamesh Kulkarni + + * genmatch.c (print_matches): Remove. + (main): Inline calls to print_matches. + 2015-01-09 Sebastian Huber * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of diff --git a/gcc/genmatch.c b/gcc/genmatch.c index d5aea443559..6855ffaf610 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -644,15 +644,6 @@ print_operand (operand *o, FILE *f = stderr, bool flattened = false) gcc_unreachable (); } -DEBUG_FUNCTION void -print_matches (struct simplify *s, FILE *f = stderr) -{ - fprintf (f, "for expression: "); - print_operand (s->match, f); - putc ('\n', f); -} - - /* AST lowering. */ /* Lowering of commutative operators. */ @@ -3679,8 +3670,10 @@ add_operator (CONVERT2, "CONVERT2", "tcc_unary", 1); if (verbose) for (unsigned i = 0; i < pred->matchers.length (); ++i) - print_matches (pred->matchers[i]); - + { + print_operand (pred->matchers[i]->match); + putc ('\n', stderr); + } decision_tree dt; for (unsigned i = 0; i < pred->matchers.length (); ++i) dt.insert (pred->matchers[i], i); @@ -3696,7 +3689,10 @@ add_operator (CONVERT2, "CONVERT2", "tcc_unary", 1); if (verbose) for (unsigned i = 0; i < p.simplifiers.length (); ++i) - print_matches (p.simplifiers[i]); + { + print_operand (p.simplifiers[i]->match); + putc ('\n', stderr); + } decision_tree dt; for (unsigned i = 0; i < p.simplifiers.length (); ++i) -- 2.11.4.GIT