This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 02/2]Add newly created bb to correct loop when reverting if-conversion in vectorizer
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Bin Cheng <Bin dot Cheng at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Tue, 28 Mar 2017 14:18:00 +0200
- Subject: Re: [PATCH 02/2]Add newly created bb to correct loop when reverting if-conversion in vectorizer
- Authentication-results: sourceware.org; auth=none
- References: <VI1PR0802MB2176E61D1DB4E4924AAD3097E7320@VI1PR0802MB2176.eurprd08.prod.outlook.com>
On Tue, Mar 28, 2017 at 2:01 PM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,
> 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?
Ok.
Richard.
> 2017-03-27 Bin Cheng <bin.cheng@arm.com>
>
> * tree-vect-loop.c (optimize_mask_stores): Add bb to the right
> loop.