tree-optimization/98308 - set vector type for mask of masked load
authorRichard Biener <rguenther@suse.de>
Mon, 4 Jan 2021 12:25:35 +0000 (13:25 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 4 Jan 2021 13:39:14 +0000 (14:39 +0100)
commit9e79d76a16c56df0f838b9aede69c0a158203f56
tree0b8b0c9b7dc9c60f8847961949c0e19f50bdb257
parent24cd9afe617a39801d190418cf3fbab3bc3742a7
tree-optimization/98308 - set vector type for mask of masked load

This makes sure to set the vector type on an invariant mask argument
for a masked load and SLP.

2021-01-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/98308
* tree-vect-stmts.c (vectorizable_load): Set invariant mask
SLP vectype.

* gcc.dg/vect/pr98308.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr98308.c [new file with mode: 0644]
gcc/tree-vect-stmts.c