tree-optimization/108482 - remove stray .LOOP_DIST_ALIAS calls
authorRichard Biener <rguenther@suse.de>
Mon, 23 Jan 2023 09:22:38 +0000 (10:22 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 23 Jan 2023 10:51:06 +0000 (11:51 +0100)
commitad4f8c4e375dd7603382ed3ff95bd184e1959918
tree724cee1a7700a232afc3d463de2af460c162365d
parentdb6b9a9ddb7855f348ea978c392d8ebc258199af
tree-optimization/108482 - remove stray .LOOP_DIST_ALIAS calls

The following deals with .LOOP_DIST_ALIAS surviving vectorization
because any of the loops involved were elided between loop distribution
and vectorization.  As opposed to .LOOP_VECTORIZED which exists only
between if-conversion and vectorization with no intermediate passes
this is more difficult to deal with in advance and thus cleaning
up after vectorization looks better.  There's the unconditional
vector lowering pass which looks like a good place for this (for
SIMD uid we have pass_simduid_cleanup).

PR tree-optimization/108482
* tree-vect-generic.cc (expand_vector_operations): Fold remaining
.LOOP_DIST_ALIAS calls.

* gcc.dg/torture/pr108482.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr108482.c [new file with mode: 0644]
gcc/tree-vect-generic.cc