mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Check for less than 0 in shuffle mask instead of -1. It's more consistent with other code related to shuffles and easier to implement in compiled code.
llvm-svn: 172788
This commit is contained in:
parent
bf40e524fd
commit
215a93298b
@ -604,7 +604,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) {
|
||||
// ShuffleVectorInst is equivalent to the original one.
|
||||
for (unsigned i = 0; i < VWidth; ++i) {
|
||||
int eltMask;
|
||||
if (Mask[i] == -1) {
|
||||
if (Mask[i] < 0) {
|
||||
// This element is an undef value.
|
||||
eltMask = -1;
|
||||
} else if (Mask[i] < (int)LHSWidth) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user