genmatch.c (dt_simplify::gen_1): Change dumping dependent on whether we are in (simpl...
authorRichard Biener <rguenther@suse.de>
Mon, 14 Jan 2019 13:11:43 +0000 (13:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 14 Jan 2019 13:11:43 +0000 (13:11 +0000)
2019-01-14  Richard Biener  <rguenther@suse.de>

* genmatch.c (dt_simplify::gen_1): Change dumping dependent on
whether we are in (simplify ...) or (match ...) context.

From-SVN: r267917

gcc/ChangeLog
gcc/genmatch.c

index c4a35e2980e648caf56d6708aa53d67cbacd2727..bf6e319ca97cfd027446add907dc6789d9dc3439 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-14  Richard Biener  <rguenther@suse.de>
+
+       * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
+       whether we are in (simplify ...) or (match ...) context.
+
 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/88796
index 5edd39af4cc9fa921a831d776e591576374d125b..7b9b09c7d8bbceb06410b91312d0695874cad96c 100644 (file)
@@ -3311,7 +3311,9 @@ dt_simplify::gen_1 (FILE *f, int indent, bool gimple, operand *result)
     }
 
   fprintf_indent (f, indent, "if (__builtin_expect (dump_file && (dump_flags & TDF_FOLDING), 0)) "
-          "fprintf (dump_file, \"Applying pattern ");
+          "fprintf (dump_file, \"%s ",
+          s->kind == simplify::SIMPLIFY
+          ? "Applying pattern" : "Matching expression");
   fprintf (f, "%%s:%%d, %%s:%%d\\n\", ");
   output_line_directive (f,
                         result ? result->location : s->match->location, true,