This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add support for vectorising live-out values using SVE LASTB


On 11/17/2017 08:24 AM, Richard Sandiford wrote:
> This patch uses the SVE LASTB instruction to optimise cases in which
> a value produced by the final scalar iteration of a vectorised loop is
> live outside the loop.  Previously this situation would stop us from
> using a fully-masked loop.
> 
> Tested on aarch64-linux-gnu (with and without SVE), x86_64-linux-gnu
> and powerpc64le-linux-gnu.  OK to install?
> 
> Richard
> 
> 
> 2017-11-17  Richard Sandiford  <richard.sandiford@linaro.org>
> 	    Alan Hayward  <alan.hayward@arm.com>
> 	    David Sherwood  <david.sherwood@arm.com>
> 
> gcc/
> 	* doc/md.texi (extract_last_@var{m}): Document.
> 	* optabs.def (extract_last_optab): New optab.
> 	* internal-fn.def (EXTRACT_LAST): New internal function.
> 	* internal-fn.c (cond_unary_direct): New macro.
> 	(expand_cond_unary_optab_fn): Likewise.
> 	(direct_cond_unary_optab_supported_p): Likewise.
> 	* tree-vect-loop.c (vectorizable_live_operation): Allow fully-masked
> 	loops using EXTRACT_LAST.
> 	* config/aarch64/aarch64-sve.md (aarch64_sve_lastb<mode>): Rename to...
> 	(extract_last_<mode>): ...this optab.
> 	(vec_extract<mode><Vel>): Update accordingly.
> 
> gcc/testsuite/
> 	* gcc.target/aarch64/sve_live_1.c: New test.
> 	* gcc.target/aarch64/sve_live_1_run.c: Likewise.
Like the last patch, I didn't look at the aarch64 bits.  The generic
bits are OK.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]