[PATCH 02/2]Add newly created bb to correct loop when reverting if-conversion in vectorizer

Bin Cheng Bin.Cheng@arm.com
Tue Mar 28 12:01:00 GMT 2017

This patch is to fix a latent vectorizer bug uncovered by previous one.  Function optimize_mask_stores
creates if-then structure in CFG in order to revert if-conversion transformation.  It adds newly created
then_bb to outer loop when vectorizing two levels loop nest and masked_store is in the inner loop.  
Without this patch, gcc.dg/tree-ssa/pr71077.c would be broken.  Bootstrap and test on AArch64, is it OK?

2017-03-27  Bin Cheng  <bin.cheng@arm.com>

	* tree-vect-loop.c (optimize_mask_stores): Add bb to the right
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: set-bb-to-correct-loop-20170327.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170328/f4a1b3f5/attachment.txt>

More information about the Gcc-patches mailing list