tree-optimization/97173 - extend assert in vectorizable_live_operation
authorRichard Biener <rguenther@suse.de>
Wed, 23 Sep 2020 08:42:48 +0000 (10:42 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 23 Sep 2020 10:19:22 +0000 (12:19 +0200)
commit52e5b3fd8ef1d1b3ff86e26bd0aa7266bd9767fd
treef54d9b23e89404d014c35bb3d9793786e2cab0c5
parente8e818399d70c5a5a3d30a54d305c6e2b92e2c66
tree-optimization/97173 - extend assert in vectorizable_live_operation

The condition we're expecting to eventually run into isn't fully
captured by checking for CTORs, instead we can also run into the
CTOR element conversion.

2020-09-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97173
* tree-vect-loop.c (vectorizable_live_operation): Extend
assert to also conver element conversions.

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