summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-prefetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r--gcc/tree-ssa-loop-prefetch.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index dd527033dd8..17b13d11d71 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -2013,12 +2013,6 @@ tree_ssa_loop_prefetch (void)
return tree_ssa_prefetch_arrays ();
}
-static bool
-gate_tree_ssa_loop_prefetch (void)
-{
- return flag_prefetch_loop_arrays > 0;
-}
-
namespace {
const pass_data pass_data_loop_prefetch =
@@ -2043,7 +2037,7 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_tree_ssa_loop_prefetch (); }
+ virtual bool gate (function *) { return flag_prefetch_loop_arrays > 0; }
unsigned int execute () { return tree_ssa_loop_prefetch (); }
}; // class pass_loop_prefetch