From: Richard Biener Date: Thu, 30 Jan 2025 10:42:51 +0000 (+0100) Subject: Remove --param vect-force-slp X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ae9e3c88ea2fdcb28f4bb58645efb52d8b33c7a;p=thirdparty%2Fgcc.git Remove --param vect-force-slp The following removes the ability to switch back to non SLP-only operation of the vectorizer - a requirement to start cleaning out non-SLP paths without risk of regressing that case. * params.opt (--param=vect-force-slp): Remove. * doc/invoke.texi (--param=vect-force-slp): Likewise. * tree-vect-loop.cc (vect_analyze_loop_2): Assume param_vect_force_slp is 1. * tree-vect-stmts.cc (vect_analyze_stmt): Likewise. --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a0f60e736e1..5b1861815de 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17225,9 +17225,6 @@ this parameter. The default value of this parameter is 50. @item vect-induction-float Enable loop vectorization of floating point inductions. -@item vect-force-slp -Force the use of SLP when vectorizing, fail if not possible. - @item vrp-block-limit Maximum number of basic blocks before VRP switches to a lower memory algorithm. diff --git a/gcc/params.opt b/gcc/params.opt index ef19051286b..1f0abeccc4b 100644 --- a/gcc/params.opt +++ b/gcc/params.opt @@ -1253,10 +1253,6 @@ The maximum factor which the loop vectorizer applies to the cost of statements i Common Joined UInteger Var(param_vect_induction_float) Init(1) IntegerRange(0, 1) Param Optimization Enable loop vectorization of floating point inductions. --param=vect-force-slp= -Common Joined UInteger Var(param_vect_force_slp) Init(1) IntegerRange(0, 1) Param Optimization -Force the use of SLP when vectorizing, fail if not possible. - -param=vrp-block-limit= Common Joined UInteger Var(param_vrp_block_limit) Init(150000) Optimization Param Maximum number of basic blocks before VRP switches to a fast model with less memory requirements. diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 1c9e9b040d0..5ec164bd602 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -2934,7 +2934,7 @@ start_over: /* When we arrive here with SLP disabled and we are supposed to use SLP for everything fail vectorization. */ - if (!slp && param_vect_force_slp) + if (!slp) return opt_result::failure_at (vect_location, "may need non-SLP handling\n"); diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 5af1973734e..61456b1f3b7 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -14022,7 +14022,7 @@ vect_analyze_stmt (vec_info *vinfo, /* When we arrive here with a non-SLP statement and we are supposed to use SLP for everything fail vectorization. */ - if (!node && param_vect_force_slp) + if (!node) return opt_result::failure_at (stmt_info->stmt, "needs non-SLP handling\n");