]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/109573 - avoid ICEing on unexpected live def
authorRichard Biener <rguenther@suse.de>
Fri, 21 Apr 2023 10:57:17 +0000 (12:57 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 21 Apr 2023 11:47:28 +0000 (13:47 +0200)
commitcddfe6bc40b3dc0806e260bbfb4cac82d609a258
treea1da1220f9bcf150490cce8935e43e1482f8c082
parent53dddbfeb213ac4ec39f550aa81eaa4264375d2c
tree-optimization/109573 - avoid ICEing on unexpected live def

The following relaxes the assert in vectorizable_live_operation
where we catch currently unhandled cases to also allow an
intermediate copy as it happens here but also relax the assert
to checking only.

PR tree-optimization/109573
* tree-vect-loop.cc (vectorizable_live_operation): Allow
unhandled SSA copy as well.  Demote assert to checking only.

* g++.dg/vect/pr109573.cc: New testcase.
gcc/testsuite/g++.dg/vect/pr109573.cc [new file with mode: 0644]
gcc/tree-vect-loop.cc