Re: [PATCH] vect: Fix vect_is_reduction

2021-11-12 Thread Richard Biener via Gcc-patches
On November 12, 2021 6:54:29 PM GMT+01:00, Richard Sandiford via Gcc-patches wrote: >The current definition of vect_is_reduction (provided for target >costing) misses some pattern statements. > >Regstrapped on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? This now will return true for

[PATCH] vect: Fix vect_is_reduction

2021-11-12 Thread Richard Sandiford via Gcc-patches
The current definition of vect_is_reduction (provided for target costing) misses some pattern statements. Regstrapped on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? Richard gcc/ * tree-vectorizer.h (vect_is_reduction): Use STMT_VINFO_REDUC_IDX. gcc/testsuite/ * gcc.