]> git.ipfire.org Git - thirdparty/gcc.git/commit
Assert finished vectorizer pattern COND_EXPR transition
authorRichard Biener <rguenther@suse.de>
Fri, 25 Oct 2024 12:27:37 +0000 (14:27 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 26 Oct 2024 12:15:23 +0000 (14:15 +0200)
commitd17e672ce82e696d8662afceb318f97139995c89
treebb43e81859d32cb640993f10eb434ba530d40c05
parent9fd86361676064a06ed61d4e7ae82492a14185a3
Assert finished vectorizer pattern COND_EXPR transition

The following places a few strathegic asserts so we do not end up
with COND_EXPRs with a comparison as the first operand during
vectorization.

* tree-vect-slp.cc (vect_get_operand_map): Mark
COMPARISON_CLASS_P COND_EXPR condition path unreachable.
* tree-vect-stmts.cc (vect_is_simple_use): Likewise.
(vectorizable_condition): Assert the COND_EXPR condition isn't
COMPARISON_CLASS_P.
gcc/tree-vect-slp.cc
gcc/tree-vect-stmts.cc