diff options
author | Caroline Concatto <caroline.concatto@arm.com> | 2021-12-13 17:20:16 +0000 |
---|---|---|
committer | Caroline Concatto <caroline.concatto@arm.com> | 2022-01-21 14:19:51 +0000 |
commit | ad43217a046634be24174299beec3a28018ec3c0 (patch) | |
tree | 8e83e8d134bdebe5552ff7b25f68312ffc730611 /llvm/unittests/ADT/StringRefTest.cpp | |
parent | e9211e03937751ab75bbb34e38acc330b85fb0d8 (diff) | |
download | llvm-ad43217a046634be24174299beec3a28018ec3c0.zip llvm-ad43217a046634be24174299beec3a28018ec3c0.tar.gz llvm-ad43217a046634be24174299beec3a28018ec3c0.tar.bz2 |
[InstCombine] Fold for masked gather when loading the same value each time.
This patch checks in the masked gather when the first operand value is a
splat and the mask is all one, because the masked gather is reloading the
same value each time. This patch replaces this pattern of masked gather by
a scalar load of the value and splats it in a vector.
Differential Revision: https://reviews.llvm.org/D115726
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions