aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-01-19 12:31:30 +0100
committerRichard Biener <rguenther@suse.de>2022-01-19 14:55:15 +0100
commit5b6788ae5a365aecd6776f563e44022acb93a57a (patch)
treebee81495b90c4dc66434d00a6e3ffe311366d03c /gcc/bitmap.cc
parent68aa3c08ef1c33d9ad1263f4b939638920de9f11 (diff)
downloadgcc-5b6788ae5a365aecd6776f563e44022acb93a57a.zip
gcc-5b6788ae5a365aecd6776f563e44022acb93a57a.tar.gz
gcc-5b6788ae5a365aecd6776f563e44022acb93a57a.tar.bz2
tree-optimization/104112 - add check for vect epilogue reduc reuse
This adds a missing check for the availability of intermediate vector types required to re-use the accumulator of a vectorized reduction in the vectorized epilogue. For SVE and VNx2DF vs V2DF with -msve-vector-bits=512 for example V4DF is not available. In addition to that we have to verify the reduction operation is supported, otherwise we for example on i?86 get vector code that's later decomposed again by vector lowering when trying to use a V2HI epilogue for a V8HI reduction with a target without TARGET_MMX_WITH_SSE. It might be we want -Wvector-operation-performance for all vect.exp tests but that seems to have existing regressions. 2022-01-19 Richard Biener <rguenther@suse.de> PR tree-optimization/104112 * tree-vect-loop.cc (vect_find_reusable_accumulator): Check for required intermediate vector types. * gcc.dg/vect/pr104112-1.c: New testcase. * gcc.dg/vect/pr104112-2.c: New testcase.
Diffstat (limited to 'gcc/bitmap.cc')
0 files changed, 0 insertions, 0 deletions