summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-18 08:33:44 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-18 08:33:44 +0000
commit3dac50ccbd5bbab3743cf3d1ea9254a07ca18ba8 (patch)
treecea22e859af7a194868852aa25abe1653a1d9ea2 /gcc/tree-ssa-phiopt.c
parenta4858153816899499d2542d4fe81989297b802eb (diff)
downloadgcc-3dac50ccbd5bbab3743cf3d1ea9254a07ca18ba8.tar.gz
2014-06-18 Richard Biener <rguenther@suse.de>
* common.opt (fssa-phiopt): New option. * opts.c (default_options_table): Enable -fssa-phiopt with -O1+ but not with -Og. * tree-ssa-phiopt.c (pass_phiopt): Add gate method. * doc/invoke.texi (-fssa-phiopt): Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211772 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index 95844f46185..54002996cc4 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -2332,6 +2332,7 @@ public:
/* opt_pass methods: */
opt_pass * clone () { return new pass_phiopt (m_ctxt); }
+ virtual bool gate (function *) { return flag_ssa_phiopt; }
virtual unsigned int execute (function *)
{
return tree_ssa_phiopt_worker (false, gate_hoist_loads ());