diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-09-05 10:36:55 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2024-09-05 10:36:55 +0100 |
commit | a50f54c0d06139d791b875e09471f2fc03af5b04 (patch) | |
tree | f6a5618149d13cf76e10e775da341a7a3747dec6 /gcc/cp | |
parent | 67eaf67360e434dd5969e1c66f043e3c751f9f52 (diff) | |
download | gcc-a50f54c0d06139d791b875e09471f2fc03af5b04.zip gcc-a50f54c0d06139d791b875e09471f2fc03af5b04.tar.gz gcc-a50f54c0d06139d791b875e09471f2fc03af5b04.tar.bz2 |
middle-end: have vect_recog_cond_store_pattern use pattern statement for cond if available
When vectorizing a conditional operation we rely on the bool_recog pattern to
hit and convert the bool of the operand to a valid mask.
However we are currently not using the converted operand as this is in a pattern
statement. This change updates it to look at the actual statement to be
vectorized so we pick up the pattern.
Note that there are no tests here since vectorization will fail until we
correctly lower all boolean conditionals early.
Tests for these are in the next patch, namely vect-conditional_store_5.c and
vect-conditional_store_6.c. And the existing vect-conditional_store_[1-4].c
checks that the other cases are still handled correctly.
gcc/ChangeLog:
* tree-vect-patterns.cc (vect_recog_cond_store_pattern): Use pattern
statement.
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions