forked from OSchip/llvm-project
[X86] When bitcasting INSERT_SUBVECTOR/EXTRACT_SUBVECTOR to match masked operations, use the correct type for the immediate operand.
llvm-svn: 293156
This commit is contained in:
parent
8e2f948ef0
commit
f0bab7b739
|
@ -29096,7 +29096,7 @@ static bool combineBitcastForMaskedOp(SDValue OrigOp, SelectionDAG &DAG,
|
|||
DCI.AddToWorklist(Op1.getNode());
|
||||
DCI.CombineTo(OrigOp.getNode(),
|
||||
DAG.getNode(Opcode, DL, VT, Op0, Op1,
|
||||
DAG.getConstant(Imm, DL, MVT::i8)));
|
||||
DAG.getIntPtrConstant(Imm, DL)));
|
||||
return true;
|
||||
}
|
||||
case ISD::EXTRACT_SUBVECTOR: {
|
||||
|
@ -29117,7 +29117,7 @@ static bool combineBitcastForMaskedOp(SDValue OrigOp, SelectionDAG &DAG,
|
|||
DCI.AddToWorklist(Op0.getNode());
|
||||
DCI.CombineTo(OrigOp.getNode(),
|
||||
DAG.getNode(Opcode, DL, VT, Op0,
|
||||
DAG.getConstant(Imm, DL, MVT::i8)));
|
||||
DAG.getIntPtrConstant(Imm, DL)));
|
||||
return true;
|
||||
}
|
||||
case X86ISD::SUBV_BROADCAST: {
|
||||
|
|
Loading…
Reference in New Issue