mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix shadow variable warning. NFCI.
llvm-svn: 370610
This commit is contained in:
parent
3ef0797917
commit
1b1ef4b3b0
@ -33480,14 +33480,14 @@ static SDValue combineTargetShuffle(SDValue N, SelectionDAG &DAG,
|
||||
MVT SrcVT = N0.getOperand(0).getSimpleValueType();
|
||||
if ((VT.getScalarSizeInBits() % SrcVT.getScalarSizeInBits()) == 0 &&
|
||||
SrcVT.getScalarSizeInBits() >= 32) {
|
||||
unsigned Mask = N.getConstantOperandVal(2);
|
||||
unsigned BlendMask = N.getConstantOperandVal(2);
|
||||
unsigned Size = VT.getVectorNumElements();
|
||||
unsigned Scale = VT.getScalarSizeInBits() / SrcVT.getScalarSizeInBits();
|
||||
unsigned ScaleMask = scaleVectorShuffleBlendMask(Mask, Size, Scale);
|
||||
BlendMask = scaleVectorShuffleBlendMask(BlendMask, Size, Scale);
|
||||
return DAG.getBitcast(
|
||||
VT, DAG.getNode(X86ISD::BLENDI, DL, SrcVT, N0.getOperand(0),
|
||||
N1.getOperand(0),
|
||||
DAG.getConstant(ScaleMask, DL, MVT::i8)));
|
||||
DAG.getConstant(BlendMask, DL, MVT::i8)));
|
||||
}
|
||||
}
|
||||
return SDValue();
|
||||
|
Loading…
Reference in New Issue
Block a user