[llvm] r324536 - [X86] Remove dead code from EmitTest that looked for an i1 type which should have already been type legalized away. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 14:19:26 PST 2018
Author: ctopper
Date: Wed Feb 7 14:19:26 2018
New Revision: 324536
URL: http://llvm.org/viewvc/llvm-project?rev=324536&view=rev
Log:
[X86] Remove dead code from EmitTest that looked for an i1 type which should have already been type legalized away. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=324536&r1=324535&r2=324536&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Feb 7 14:19:26 2018
@@ -17140,11 +17140,6 @@ static SDValue EmitKTEST(SDValue Op, Sel
/// 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;
More information about the llvm-commits
mailing list