Replace EVT with MVT in isHorizontalBinOp as it is only called with legal types.
llvm-svn: 187779
This commit is contained in:
parent
e359e85649
commit
9bc00b65b6
|
@ -17721,7 +17721,7 @@ static bool isHorizontalBinOp(SDValue &LHS, SDValue &RHS, bool IsCommutative) {
|
|||
RHS.getOpcode() != ISD::VECTOR_SHUFFLE)
|
||||
return false;
|
||||
|
||||
EVT VT = LHS.getValueType();
|
||||
MVT VT = LHS.getValueType().getSimpleVT();
|
||||
|
||||
assert((VT.is128BitVector() || VT.is256BitVector()) &&
|
||||
"Unsupported vector type for horizontal add/sub");
|
||||
|
|
Loading…
Reference in New Issue