bababuck
bababuck
Sounds good and thanks for the help. I will put together a MR with the following commits, will focus on just the store chains initially: 1. Expand `VectorizableTree` to be...
> [@bababuck](https://github.com/bababuck) Please can make public your draft PR for fractional values? https://github.com/llvm/llvm-project/commit/86a92c1b2131f22ec438176732ce3b348d32a71b. Very much a rough draft, more optimization is possible, and lots of testing is needed. I expect...
Thanks for the response! > 3. was attempted some time ago [Derive TTI instruction costs from scheduling models #35898](https://github.com/llvm/llvm-project/issues/35898), and [@mshockwave](https://github.com/mshockwave) mentioned it in his talk at this years developer's...
> Yeah I remember doing that in [#99594](https://github.com/llvm/llvm-project/pull/99594), since the costs are relative. If we expect most scalar units to have a wider issue width than your vector units then...
> One thing that I'm just realising though is that I think some places check to see if an instruction's cost is
Linking #170821
Good catch!! > Now, whether this is a problem in SLP with not generating the right shuffles, or the backend not lowering the shuffles given, yeah, that's the hard problem....
After updating to more efficiently lower the shuffles in #178095, this runs about a 15% faster, but the vectorized version still is about 30% slower.
> It looks like VectorCombine already has this shuffle in VectorCombine::foldShuffleOfShuffles, but it doesn't kick in because it thinks it's too expensive: Ran with this, hopefully not stepping on any...
See discussion [here](https://github.com/llvm/llvm-project/pull/177241#issuecomment-3793332142). With the current heuristic for vectorization of store chains, this is considered an acceptable missed optimization.