[PATCH VECT]Skip unnecessary data dependence check after visited store stmt in slp

Bin Cheng Bin.Cheng@arm.com
Fri Oct 28 11:10:00 GMT 2016


Hi,
Function vect_slp_analyze_node_dependences delays data-dependence check for visited store stmts until we run into the last store, because all stores are sunk/vectorized at the position of the last one.  The problem is that it still checks data-dep for current store stmt after the delay part of code.  This is unnecessary no matter the last store stmt is encountered or not.  This patch fixes the issue by simple refactoring.  Bootstrap and test on x86_64.  Is it OK?

Thanks,
bin

2016-10-27  Bin Cheng  <bin.cheng@arm.com>

	* tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
	unnecessary data dependence check after visited store stmt.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: slp-unnecessary-ddep-check-20161026.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161028/408e8198/attachment.txt>


More information about the Gcc-patches mailing list