enable live comparison vectorization
authorRichard Biener <rguenther@suse.de>
Wed, 9 Sep 2020 10:05:55 +0000 (12:05 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 9 Sep 2020 11:12:27 +0000 (13:12 +0200)
commitdb918db2c305adf8ba727a5981a684c19de1510e
tree6d190ab13a33e107aec4966aa9eec1a5f54a6cd1
parentcbc12c582462c720adccef5097b3162cc77c37a2
enable live comparison vectorization

This removes a check preventing vectorization of live results of
vectorized comparisons.  I tested it with AVX512 mask registers
(inspecting assembly) and traditional vector masks.

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

* tree-vect-stmts.c (vectorizable_comparison): Allow
STMT_VINFO_LIVE_P stmts.

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