[X86] Remove dead code from EmitTest that looked for an i1 type which should have already been type legalized away. NFC
llvm-svn: 324536
This commit is contained in:
parent
699f5d6bbc
commit
1db5ebc016
|
|
@ -17140,11 +17140,6 @@ static SDValue EmitKTEST(SDValue Op, SelectionDAG &DAG,
|
|||
/// equivalent.
|
||||
SDValue X86TargetLowering::EmitTest(SDValue Op, unsigned X86CC, const SDLoc &dl,
|
||||
SelectionDAG &DAG) const {
|
||||
if (Op.getValueType() == MVT::i1) {
|
||||
SDValue ExtOp = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i8, Op);
|
||||
return DAG.getNode(X86ISD::CMP, dl, MVT::i32, ExtOp,
|
||||
DAG.getConstant(0, dl, MVT::i8));
|
||||
}
|
||||
// CF and OF aren't always set the way we want. Determine which
|
||||
// of these we need.
|
||||
bool NeedCF = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue