From: Andrew Pinski Date: Fri, 31 Mar 2023 01:37:20 +0000 (+0000) Subject: PHIOPT: Remove gate_hoist_loads prototype X-Git-Tag: basepoints/gcc-15~10130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4ad4cca5d2b15d01a50a893348cbcfc340cdd5;p=thirdparty%2Fgcc.git PHIOPT: Remove gate_hoist_loads prototype gate_hoist_loads is defined before its usage so there is no reason for the declaration (prototype) to be there. Committed as obvious after a bootstrap/test on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * tree-ssa-phiopt.cc (gate_hoist_loads): Remove prototype. --- diff --git a/gcc/tree-ssa-phiopt.cc b/gcc/tree-ssa-phiopt.cc index a7ab6ce4ad90..16acd2f1894d 100644 --- a/gcc/tree-ssa-phiopt.cc +++ b/gcc/tree-ssa-phiopt.cc @@ -77,7 +77,6 @@ static bool cond_if_else_store_replacement (basic_block, basic_block, basic_bloc static hash_set * get_non_trapping (); static void hoist_adjacent_loads (basic_block, basic_block, basic_block, basic_block); -static bool gate_hoist_loads (void); /* This pass tries to transform conditional stores into unconditional ones, enabling further simplifications with the simpler then and else