forked from OSchip/llvm-project
[X86] Remove code from combineSext that looks for MVT::i1 after operation legalization which can never happen.
Type legalization guarantees this to be impossible since MVT::i1 isn't a legal type. llvm-svn: 321132
This commit is contained in:
parent
b5f53449e4
commit
aee3acb9a8
|
@ -35848,14 +35848,8 @@ static SDValue combineSext(SDNode *N, SelectionDAG &DAG,
|
|||
if (SDValue NewCMov = combineToExtendCMOV(N, DAG))
|
||||
return NewCMov;
|
||||
|
||||
if (!DCI.isBeforeLegalizeOps()) {
|
||||
if (InVT == MVT::i1) {
|
||||
SDValue Zero = DAG.getConstant(0, DL, VT);
|
||||
SDValue AllOnes = DAG.getAllOnesConstant(DL, VT);
|
||||
return DAG.getSelect(DL, VT, N0, AllOnes, Zero);
|
||||
}
|
||||
if (!DCI.isBeforeLegalizeOps())
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
if (InVT == MVT::i1 && N0.getOpcode() == ISD::XOR &&
|
||||
isAllOnesConstant(N0.getOperand(1)) && N0.hasOneUse()) {
|
||||
|
|
Loading…
Reference in New Issue