]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: check support for gcond with {cond{_len}_}vec_cbranch_{any|all} optabs [PR118974]
authorTamar Christina <tamar.christina@arm.com>
Tue, 25 Nov 2025 12:51:52 +0000 (12:51 +0000)
committerTamar Christina <tamar.christina@arm.com>
Tue, 25 Nov 2025 12:51:52 +0000 (12:51 +0000)
commitb24f73a8a5210b9877ae98112b0a87f2aeae0c62
tree73aeb22c0889376c505b1e659f3bbd94b0967751
parent1c9d321611367608d6bc1d97cf35b4c1bcb4b2d1
vect: check support for gcond with {cond{_len}_}vec_cbranch_{any|all} optabs [PR118974]

This change allows a target to only implement the explicit vec_cbranch optabs.
To do this the vectorizer is updated to check for the new optabs directly.

Targets that have a different type for BOOLEAN_VECTOR_TYPE_P for instance
can use only the new optabs.

gcc/ChangeLog:

PR target/118974
* tree-vect-stmts.cc (supports_vector_compare_and_branch): New.
(vectorizable_early_exit): Use it.
gcc/tree-vect-stmts.cc