+2017-05-25 Martin Liska <mliska@suse.cz>
+
+ * dumpfile.c: Add TDF_FOLDING.
+ * dumpfile.h (enum dump_kind): Likewise.
+ * genmatch.c (dt_simplify::gen_1): Use it.
+
2017-05-25 Marc Glisse <marc.glisse@inria.fr>
* match.pd (view_convert (convert@0 @1)): Handle zero-extension.
{"enumerate_locals", TDF_ENUMERATE_LOCALS},
{"scev", TDF_SCEV},
{"gimple", TDF_GIMPLE},
+ {"folding", TDF_FOLDING},
{"optimized", MSG_OPTIMIZED_LOCATIONS},
{"missed", MSG_MISSED_OPTIMIZATION},
{"note", MSG_NOTE},
#define TDF_SCEV (1 << 24) /* Dump SCEV details. */
#define TDF_COMMENT (1 << 25) /* Dump lines with prefix ";;" */
#define TDF_GIMPLE (1 << 26) /* Dump in GIMPLE FE syntax */
+#define TDF_FOLDING (1 << 27) /* Dump folding details. */
#define MSG_OPTIMIZED_LOCATIONS (1 << 27) /* -fopt-info optimized sources */
#define MSG_MISSED_OPTIMIZATION (1 << 28) /* missed opportunities */
#define MSG_NOTE (1 << 29) /* general optimization info */
}
}
- fprintf_indent (f, indent, "if (dump_file && (dump_flags & TDF_DETAILS)) "
+ fprintf_indent (f, indent, "if (dump_file && (dump_flags & TDF_FOLDING)) "
"fprintf (dump_file, \"Applying pattern ");
output_line_directive (f,
result ? result->location : s->match->location, true);