diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-02-07 22:51:06 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-02-07 22:51:06 +0000 |
commit | f116e4acc7f2a3187ffabb3e3286db416121ff0c (patch) | |
tree | a74f9579d335ecd221732f9b7189d9c15c390caf /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | bd173badb4743aac228027e5331bdbace5c9e286 (diff) | |
download | bcm5719-llvm-f116e4acc7f2a3187ffabb3e3286db416121ff0c.tar.gz bcm5719-llvm-f116e4acc7f2a3187ffabb3e3286db416121ff0c.zip |
[X86][SSE] Resolve target shuffle inputs to sentinels to permit more combines
The combineX86ShufflesRecursively only supports unary shuffles, but was missing the opportunity to combine binary shuffles with a zero / undef second input.
This patch resolves target shuffle inputs, converting the shuffle mask elements to SM_SentinelUndef/SM_SentinelZero where possible. It then resolves the updated mask to check if we have created a faux unary shuffle.
Additionally, we now attempt to recursively call combineX86ShufflesRecursively for all input operands (we used to just recurse for unary integer shuffles and unary unpacks) - it safely returns early if its not a target shuffle.
Differential Revision: http://reviews.llvm.org/D16683
llvm-svn: 260063
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions