diff options
author | Richard Biener <rguenther@suse.de> | 2022-02-21 11:05:58 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-05-05 10:36:42 +0200 |
commit | 938a02a589dc22cef65bba2b131fc9e4874baddb (patch) | |
tree | 3475889c560188ce6f9ee28eadcacff6b639ad5e /gcc/tree.h | |
parent | b9b764bce89f104e48f797b33836d66073e73ebb (diff) | |
download | gcc-938a02a589dc22cef65bba2b131fc9e4874baddb.zip gcc-938a02a589dc22cef65bba2b131fc9e4874baddb.tar.gz gcc-938a02a589dc22cef65bba2b131fc9e4874baddb.tar.bz2 |
tree-optimization/104595 - vectorization of COND_EXPR with bool load
The following fixes an omission in bool pattern detection that
makes it fail when check_bool_pattern fails for COND_EXPR. That's
not what it should do, instead it should still pattern recog
to var != 0 even if no further adjustments to the def chain are
necessary when var is not a mask already.
2022-02-21 Richard Biener <rguenther@suse.de>
PR tree-optimization/104595
* tree-vect-patterns.cc (vect_recog_bool_pattern): For
COND_EXPR do not fail if check_bool_pattern returns false.
* gcc.dg/vect/pr104595.c: New testcase.
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions