* [PATCH] Add timevars to tree-ssa-math-opts.c passes
@ 2017-12-05 13:19 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2017-12-05 13:19 UTC (permalink / raw)
To: gcc-patches
Just noticed they're missing.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.
Richard.
2017-12-05 Richard Biener <rguenther@suse.de>
* timevar.def (TV_TREE_RECIP, TV_TREE_SINCOS, TV_TREE_WIDEN_MUL):
Add.
* tree-ssa-math-opts.c (pass_data_cse_reciprocal): Use TV_TREE_RECIP.
(pass_data_cse_sincos): Use TV_TREE_SINCOS.
(pass_data_optimize_widening_mul): Use TV_TREE_WIDEN_MUL.
Index: gcc/timevar.def
===================================================================
--- gcc/timevar.def (revision 255414)
+++ gcc/timevar.def (working copy)
@@ -209,6 +209,9 @@ DEFTIMEVAR (TV_TREE_SSA_VERIFY , "
DEFTIMEVAR (TV_TREE_STMT_VERIFY , "tree STMT verifier")
DEFTIMEVAR (TV_TREE_SWITCH_CONVERSION, "tree switch conversion")
DEFTIMEVAR (TV_TREE_SWITCH_LOWERING, "tree switch lowering")
+DEFTIMEVAR (TV_TREE_RECIP , "gimple CSE reciprocals")
+DEFTIMEVAR (TV_TREE_SINCOS , "gimple CSE sin/cos")
+DEFTIMEVAR (TV_TREE_WIDEN_MUL , "gimple widening/fma detection")
DEFTIMEVAR (TV_TRANS_MEM , "transactional memory")
DEFTIMEVAR (TV_TREE_STRLEN , "tree strlen optimization")
DEFTIMEVAR (TV_CGRAPH_VERIFY , "callgraph verifier")
Index: gcc/tree-ssa-math-opts.c
===================================================================
--- gcc/tree-ssa-math-opts.c (revision 255414)
+++ gcc/tree-ssa-math-opts.c (working copy)
@@ -688,7 +688,7 @@ const pass_data pass_data_cse_reciprocal
GIMPLE_PASS, /* type */
"recip", /* name */
OPTGROUP_NONE, /* optinfo_flags */
- TV_NONE, /* tv_id */
+ TV_TREE_RECIP, /* tv_id */
PROP_ssa, /* properties_required */
0, /* properties_provided */
0, /* properties_destroyed */
@@ -1902,7 +1902,7 @@ const pass_data pass_data_cse_sincos =
GIMPLE_PASS, /* type */
"sincos", /* name */
OPTGROUP_NONE, /* optinfo_flags */
- TV_NONE, /* tv_id */
+ TV_TREE_SINCOS, /* tv_id */
PROP_ssa, /* properties_required */
PROP_gimple_opt_math, /* properties_provided */
0, /* properties_destroyed */
@@ -3243,7 +3243,7 @@ const pass_data pass_data_optimize_widen
GIMPLE_PASS, /* type */
"widening_mul", /* name */
OPTGROUP_NONE, /* optinfo_flags */
- TV_NONE, /* tv_id */
+ TV_TREE_WIDEN_MUL, /* tv_id */
PROP_ssa, /* properties_required */
0, /* properties_provided */
0, /* properties_destroyed */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-05 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 13:19 [PATCH] Add timevars to tree-ssa-math-opts.c passes Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).