[PATCH] D16683: [X86][SSE] Resolve target shuffle inputs to sentinels to permit more combines
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 05:52:19 PST 2016
RKSimon created this revision.
RKSimon added reviewers: qcolombet, andreadb, spatel.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10961 bytes
Desc: not available
More information about the llvm-commits