aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-02-29 09:22:19 +0100
committerRichard Biener <rguenther@suse.de>2024-03-01 13:10:00 +0100
commitf9c30ea737b806caac917d8f501305151a2cbd57 (patch)
tree5fa8f0fddab4ded32a8ef99ca9a2bdfebbdde16c /gcc/tree-vect-loop.cc
parent4547628c78618616595f4b5e1bef2b582c77793d (diff)
downloadgcc-f9c30ea737b806caac917d8f501305151a2cbd57.zip
gcc-f9c30ea737b806caac917d8f501305151a2cbd57.tar.gz
gcc-f9c30ea737b806caac917d8f501305151a2cbd57.tar.bz2
middle-end/114070 - VEC_COND_EXPR folding
The following amends the PR114070 fix to optimistically allow the folding when we cannot expand the current vec_cond using vcond_mask and we're still before vector lowering. This leaves a small window between vectorization and lowering where we could break vec_conds that can be expanded via vcond{,u,eq}, most susceptible is the loop unrolling pass which applies VN and thus possibly folding to the unrolled body of a vectorized loop. This gets back the folding for targets that cannot do vectorization. It doesn't get back the folding for x86 with AVX512 for example since that can handle the original IL but not the folded since it misses some vcond_mask expanders. PR middle-end/114070 * match.pd ((c ? a : b) op d --> c ? (a op d) : (b op d)): Allow the folding if before lowering and the current IL isn't supported with vcond_mask.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions