]> granicus.if.org Git - llvm/commitdiff
[DAGCombine] convertBuildVecZextToZext - remove duplicate getOpcode() call. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 6 Jul 2019 18:32:15 +0000 (18:32 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 6 Jul 2019 18:32:15 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365269 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index c00f89267fb7282ce0d4ddf0f8e820ce20dee9ef..96164f3d980bdae64e7ddffb838e6420a2f662ba 100644 (file)
@@ -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<ConstantSDNode>(Op.getOperand(0).getOperand(1)))