https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84634

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 
---
Author: rsandifo
Date: Fri Mar  2 09:46:43 2018
New Revision: 258131

URL: https://gcc.gnu.org/viewcvs?rev=258131&root=gcc&view=rev
Log:
Avoid &LOOP_VINFO_MASKS for bb vectorisation (PR 84634)

We were computing &LOOP_VINFO_MASKS even for bb vectorisation,
which is UB.

2018-03-02  Richard Sandiford  <richard.sandif...@linaro.org>

gcc/
        PR tree-optimization/84634
        * tree-vect-stmts.c (vectorizable_store, vectorizable_load): Replace
        masks and masked_loop_p with a single loop_masks, making sure it's
        null for bb vectorization.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-vect-stmts.c

Reply via email to