Hi, The attached patch removes redundant check for number of loops in pass_vectorize::execute, since it only calls vectorize_loops, and in vectorize_loops, we immediately bail out if no loops are present: vect_loops_num = number_of_loops (cfun); /* Bail out if there are no loops. */ if (vect_loops_num <= 1) return 0;
Is the patch OK to commit ? Thanks, Prathamesh
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 1bbf2f1fb2c..d10e2dc0d54 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -407,9 +407,6 @@ public: unsigned int pass_vectorize::execute (function *fun) { - if (number_of_loops (fun) <= 1) - return 0; - return vectorize_loops (); }