Re: [PATCH] tree-optimization/104445 - check for vector extraction support

2022-02-09 Thread Richard Biener via Gcc-patches
-> v4qi with this simple approach. I'll think about those cases when we clean this up, possibly next stage1. Re-bootstrapping and testing the variant below, will push when that succeeds. Richard. >From e1374a647d4524734cad373a79fe9b863365c374 Mon Sep 17 00:00:00 2001 From: Richard Bie

Re: [PATCH] tree-optimization/104445 - check for vector extraction support

2022-02-09 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > This adds a missing check to epilogue reduction re-use, namely > that we can do hi/lo extracts from the vector when demoting it > to the epilogue vector size. > > I've chosen to add a can_vec_extract helper to optabs-query.h, > in the future we might want to simplify the v

[PATCH] tree-optimization/104445 - check for vector extraction support

2022-02-09 Thread Richard Biener via Gcc-patches
This adds a missing check to epilogue reduction re-use, namely that we can do hi/lo extracts from the vector when demoting it to the epilogue vector size. I've chosen to add a can_vec_extract helper to optabs-query.h, in the future we might want to simplify the vectorizers life by handling vector-