]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end: refactor vectorizable_comparison to make the main body re-usable.
authorTamar Christina <tamar.christina@arm.com>
Wed, 18 Oct 2023 08:01:41 +0000 (09:01 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 18 Oct 2023 08:01:41 +0000 (09:01 +0100)
commit46937e1b47274c5f5edfc22c7e70b820c6d55530
treee8c266c2ff01c866edceb4d9ca5cd3c298556b09
parentc51040cb43404f411d4234abe7cf1a238b6e0d34
middle-end: refactor vectorizable_comparison to make the main body re-usable.

Vectorization of a gcond starts off essentially the same as vectorizing a
comparison witht he only difference being how the operands are extracted.

This refactors vectorable_comparison such that we now have a generic function
that can be used from vectorizable_early_break.  The refactoring splits the
gassign checks and actual validation/codegen off to a helper function.

No change in functionality expected.

gcc/ChangeLog:

* tree-vect-stmts.cc (vectorizable_comparison): Refactor, splitting body
to ...
(vectorizable_comparison_1): ...This.
gcc/tree-vect-stmts.cc