forked from OSchip/llvm-project
[X86] Qualify some vector specific code with VT.isVector(). NFCI
Other checks inside require a build_vector, but we this lets us stop earlier and makes the code more clear. llvm-svn: 318969
This commit is contained in:
parent
c1b3269171
commit
696bfc08d8
|
@ -35902,11 +35902,11 @@ static SDValue combineSetCC(SDNode *N, SelectionDAG &DAG,
|
||||||
return V;
|
return V;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VT.getScalarType() == MVT::i1 &&
|
if (VT.isVector() && VT.getVectorElementType() == MVT::i1 &&
|
||||||
(CC == ISD::SETNE || CC == ISD::SETEQ || ISD::isSignedIntSetCC(CC))) {
|
(CC == ISD::SETNE || CC == ISD::SETEQ || ISD::isSignedIntSetCC(CC))) {
|
||||||
bool IsSEXT0 =
|
bool IsSEXT0 =
|
||||||
(LHS.getOpcode() == ISD::SIGN_EXTEND) &&
|
(LHS.getOpcode() == ISD::SIGN_EXTEND) &&
|
||||||
(LHS.getOperand(0).getValueType().getScalarType() == MVT::i1);
|
(LHS.getOperand(0).getValueType().getVectorElementType() == MVT::i1);
|
||||||
bool IsVZero1 = ISD::isBuildVectorAllZeros(RHS.getNode());
|
bool IsVZero1 = ISD::isBuildVectorAllZeros(RHS.getNode());
|
||||||
|
|
||||||
if (!IsSEXT0 || !IsVZero1) {
|
if (!IsSEXT0 || !IsVZero1) {
|
||||||
|
|
Loading…
Reference in New Issue