diff options
author | Martin Liska <mliska@suse.cz> | 2017-05-25 12:08:02 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-05-25 10:08:02 +0000 |
commit | 56af751e21b1397bfc1ba7aba8dfa18aebc4c209 (patch) | |
tree | b1a939271deb5cbc463ff375077f63df666a437c /gcc | |
parent | 18c1e9e024fe76f61424d5b0a24ce7b502a1f4b5 (diff) | |
download | gcc-56af751e21b1397bfc1ba7aba8dfa18aebc4c209.zip gcc-56af751e21b1397bfc1ba7aba8dfa18aebc4c209.tar.gz gcc-56af751e21b1397bfc1ba7aba8dfa18aebc4c209.tar.bz2 |
Add -fdump*-folding suboption.
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.
From-SVN: r248452
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dumpfile.c | 1 | ||||
-rw-r--r-- | gcc/dumpfile.h | 1 | ||||
-rw-r--r-- | gcc/genmatch.c | 2 |
4 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1da0405..aea7ef5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 13a7113..903d879 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -118,6 +118,7 @@ static const struct dump_option_value_info dump_options[] = {"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}, diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index a1e4720..abb4d93a 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -92,6 +92,7 @@ enum dump_kind #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 */ diff --git a/gcc/genmatch.c b/gcc/genmatch.c index 2c3183b..f20e39f 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -3191,7 +3191,7 @@ dt_simplify::gen_1 (FILE *f, int indent, bool gimple, operand *result) } } - 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); |