This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, vec-tails 08/10] Support loop epilogue masking and low trip count loop vectorization
- From: Jeff Law <law at redhat dot com>
- To: Ilya Enkovich <enkovich dot gnu at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Jun 2016 09:45:29 -0600
- Subject: Re: [PATCH, vec-tails 08/10] Support loop epilogue masking and low trip count loop vectorization
- Authentication-results: sourceware.org; auth=none
- References: <20160519194604 dot GI40563 at msticlxl57 dot ims dot intel dot com>
On 05/19/2016 01:46 PM, Ilya Enkovich wrote:
Hi,
This patch enables vectorization of loop epilogues and low trip count
loops using masking.
Thanks,
Ilya
--
gcc/
2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
* dbgcnt.def (vect_tail_mask): New.
* tree-vect-loop.c (vect_analyze_loop_2): Support masked loop
epilogues and low trip count loops.
(vect_get_known_peeling_cost): Ignore scalat epilogue cost for
s/scalat/scalar/
loops we are going to mask.
(vect_estimate_min_profitable_iters): Support masked loop
epilogues and low trip count loops.
* tree-vectorizer.c (vectorize_loops): Add a message for a case
when loop epilogue can't be vectorized.
I don't see anything here that worries me. Richi's question is a valid
one, but I don't have a strong opinion on whether or not that should be
explored as a prerequisite for this work to be accepted or if it should
be a follow-up item. So take guidance from Richi on that.
jeff