Avoid &LOOP_VINFO_MASKS for bb vectorisation (PR 84634)
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 2 Mar 2018 09:46:43 +0000 (09:46 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 2 Mar 2018 09:46:43 +0000 (09:46 +0000)
commit70088b953b22eb6a9878d272e4e2a8add136ebc8
tree30a81e1764819990fcd27b036d7ab3045ad54b66
parent962e91fcf043edab3684dd0564efd3df219d3cb1
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.sandiford@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.

From-SVN: r258131
gcc/ChangeLog
gcc/tree-vect-stmts.c