diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-08-22 15:26:17 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-08-22 15:26:17 +0100 |
commit | 352df10a238f7a2abbfa55a2acd5a43fcff80410 (patch) | |
tree | c63a6285839c81592db5ac7cff0ed3421fac6fa8 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 96fb3eef660ffaf940c6e78d984cf2e985e76961 (diff) | |
download | llvm-352df10a238f7a2abbfa55a2acd5a43fcff80410.zip llvm-352df10a238f7a2abbfa55a2acd5a43fcff80410.tar.gz llvm-352df10a238f7a2abbfa55a2acd5a43fcff80410.tar.bz2 |
[X86][AVX] matchShuffleAsBlend - use isElementEquivalent to help match broadcast/repeated elements
Extend matchShuffleAsBlend to not only match against known in-place elements for BLEND shuffles, but use isElementEquivalent to determine if the shuffle mask's referenced element is the same as the in-place element.
This allows us to replace a number of insertps instructions with more general blendps instructions (better opportunities for commutation, concatenation etc.).
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions