mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00: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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
37d093f0b0
commit
081c29b256
@ -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