Re: [PATCH] tree-optimization/104595 - vectorization of COND_EXPR with bool load

2022-05-04 Thread Richard Biener via Gcc-patches
On Mon, Feb 21, 2022 at 4:54 PM Richard Biener via Gcc-patches wrote: > > 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 furt

[PATCH] tree-optimization/104595 - vectorization of COND_EXPR with bool load

2022-02-21 Thread Richard Biener via Gcc-patches
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. B