diff options
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r-- | gcc/tree-ssa.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index ecc8da3..52126ca 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -1139,15 +1139,6 @@ execute_init_datastructures (void) return 0; } -/* Gate for IPCP optimization. */ - -static bool -gate_init_datastructures (void) -{ - /* Do nothing for funcions that was produced already in SSA form. */ - return !(cfun->curr_properties & PROP_ssa); -} - namespace { const pass_data pass_data_init_datastructures = @@ -1172,7 +1163,12 @@ public: {} /* opt_pass methods: */ - bool gate () { return gate_init_datastructures (); } + virtual bool gate (function *fun) + { + /* Do nothing for funcions that was produced already in SSA form. */ + return !(fun->curr_properties & PROP_ssa); + } + unsigned int execute () { return execute_init_datastructures (); } }; // class pass_init_datastructures |