mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Use <0 checks in place of ==-1 because it results in simpler code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bbf9d3e493
commit
04f74a149d
@ -5678,12 +5678,12 @@ LowerVECTOR_SHUFFLEtoBlend(ShuffleVectorSDNode *SVOp,
|
||||
SVOp->getMaskElt(i + NumElemsInLane) : -1;
|
||||
int EltIdx = SVOp->getMaskElt(i);
|
||||
|
||||
if ((EltIdx == -1 || EltIdx == (int)i) &&
|
||||
(SndLaneEltIdx == -1 || SndLaneEltIdx == (int)(i + NumElemsInLane)))
|
||||
if ((EltIdx < 0 || EltIdx == (int)i) &&
|
||||
(SndLaneEltIdx < 0 || SndLaneEltIdx == (int)(i + NumElemsInLane)))
|
||||
continue;
|
||||
|
||||
if (((unsigned)EltIdx == (i + NumElems)) &&
|
||||
(SndLaneEltIdx == -1 ||
|
||||
(SndLaneEltIdx < 0 ||
|
||||
(unsigned)SndLaneEltIdx == i + NumElems + NumElemsInLane))
|
||||
MaskValue |= (1<<i);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user