aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2020-03-01 09:09:22 -0500
committerSanjay Patel <spatel@rotateright.com>2020-03-01 09:10:25 -0500
commit619d7dc39a1bb875cca77fe06c7dc670c380c861 (patch)
tree2a40e6e60306aa87f528358c9d4b69e936cabafe /llvm/lib/IR/ModuleSummaryIndex.cpp
parent624dbfcc1b81520d2211d43a759f817d0b131de0 (diff)
downloadllvm-619d7dc39a1bb875cca77fe06c7dc670c380c861.zip
llvm-619d7dc39a1bb875cca77fe06c7dc670c380c861.tar.gz
llvm-619d7dc39a1bb875cca77fe06c7dc670c380c861.tar.bz2
[DAGCombiner] recognize shuffle (shuffle X, Mask0), Mask --> splat X
We get the simple cases of this via demanded elements and other folds, but that doesn't work if the values have >1 use, so add a dedicated match for the pattern. We already have this transform in IR, but it doesn't help the motivating x86 tests (based on PR42024) because the shuffles don't exist until after legalization and other combines have happened. The AArch64 test shows a minimal IR example of the problem. Differential Revision: https://reviews.llvm.org/D75348
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions