width as the result value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64335
91177308-0d34-0410-b5e6-
96231b3b80d8
+ APInt UndefElts4(LHSVWidth, 0);
TmpV = SimplifyDemandedVectorElts(I->getOperand(0), LeftDemanded,
TmpV = SimplifyDemandedVectorElts(I->getOperand(0), LeftDemanded,
if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; }
if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; }
- APInt UndefElts3(VWidth, 0);
+ APInt UndefElts3(LHSVWidth, 0);
TmpV = SimplifyDemandedVectorElts(I->getOperand(1), RightDemanded,
UndefElts3, Depth+1);
if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; }
TmpV = SimplifyDemandedVectorElts(I->getOperand(1), RightDemanded,
UndefElts3, Depth+1);
if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; }
if (MaskVal == -1u) {
UndefElts.set(i);
} else if (MaskVal < LHSVWidth) {
if (MaskVal == -1u) {
UndefElts.set(i);
} else if (MaskVal < LHSVWidth) {
- if (UndefElts2[MaskVal]) {
+ if (UndefElts4[MaskVal]) {
NewUndefElts = true;
UndefElts.set(i);
}
NewUndefElts = true;
UndefElts.set(i);
}