mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[DAGCombine] narrowInsertExtractVectorBinOp - early out for binops that change value type. NFCI.
This is implicit in the value type checks in getSubVectorSrc - this just makes it upfront and obvious. llvm-svn: 367220
This commit is contained in:
parent
4b1a7112ea
commit
3c0bd0262f
@ -18020,7 +18020,11 @@ static SDValue narrowInsertExtractVectorBinOp(SDNode *Extract,
|
||||
if (!TLI.isBinOp(BinOpcode) || BinOp.getNode()->getNumValues() != 1)
|
||||
return SDValue();
|
||||
|
||||
EVT VecVT = BinOp.getValueType();
|
||||
SDValue Bop0 = BinOp.getOperand(0), Bop1 = BinOp.getOperand(1);
|
||||
if (VecVT != Bop0.getValueType() || VecVT != Bop1.getValueType())
|
||||
return SDValue();
|
||||
|
||||
SDValue Index = Extract->getOperand(1);
|
||||
EVT SubVT = Extract->getValueType(0);
|
||||
if (!TLI.isOperationLegalOrCustom(BinOpcode, SubVT))
|
||||
|
Loading…
Reference in New Issue
Block a user