Hi,
I removed printing "for expression:" from print_matches. I think it
is out of place tvim here and we call print_matches after lowering.
OK to commit ?
Thanks,
Prathamesh
Index: gcc/genmatch.c
===================================================================
--- gcc/genmatch.c (revision 218996)
+++ gcc/genmatch.c (working copy)
@@ -645,10 +645,9 @@
}
DEBUG_FUNCTION void
-print_matches (struct simplify *s, FILE *f = stderr)
+print_matches (operand *o, FILE *f = stderr)
{
- fprintf (f, "for expression: ");
- print_operand (s->match, f);
+ print_operand (o, f);
putc ('\n', f);
}
@@ -3672,7 +3671,7 @@
if (verbose)
for (unsigned i = 0; i < pred->matchers.length (); ++i)
- print_matches (pred->matchers[i]);
+ print_matches (pred->matchers[i]->match);
decision_tree dt;
for (unsigned i = 0; i < pred->matchers.length (); ++i)
@@ -3689,7 +3688,7 @@
if (verbose)
for (unsigned i = 0; i < p.simplifiers.length (); ++i)
- print_matches (p.simplifiers[i]);
+ print_matches (p.simplifiers[i]->match);
decision_tree dt;
for (unsigned i = 0; i < p.simplifiers.length (); ++i)
2014-12-12 Prathamesh Kulkarni <[email protected]>
* genmatch.c (print_matches): Change type of first parameter to operand
*.
Remove call to fprintf to print "for expression: ".
(main): Adjust call to print_matches.