From: Simon Pilgrim Date: Sat, 6 Jul 2019 18:32:15 +0000 (+0000) Subject: [DAGCombine] convertBuildVecZextToZext - remove duplicate getOpcode() call. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eeed07642cc682b3a76a8eb0847e46d242e23c5;p=llvm [DAGCombine] convertBuildVecZextToZext - remove duplicate getOpcode() call. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index c00f89267fb..96164f3d980 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -17582,7 +17582,7 @@ SDValue DAGCombiner::convertBuildVecZextToZext(SDNode *N) { auto checkElem = [&](SDValue Op) -> int64_t { unsigned Opc = Op.getOpcode(); FoundZeroExtend |= (Opc == ISD::ZERO_EXTEND); - if ((Op.getOpcode() == ISD::ZERO_EXTEND || Opc == ISD::ANY_EXTEND) && + if ((Opc == ISD::ZERO_EXTEND || Opc == ISD::ANY_EXTEND) && Op.getOperand(0).getOpcode() == ISD::EXTRACT_VECTOR_ELT && Op0.getOperand(0).getOperand(0) == Op.getOperand(0).getOperand(0)) if (auto *C = dyn_cast(Op.getOperand(0).getOperand(1)))