diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-07-06 18:32:15 +0000 | 
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-07-06 18:32:15 +0000 | 
| commit | 9c68aa33e3b5faf943ead491e57c0d9ba77d6424 (patch) | |
| tree | f1f804a1cecf619adccbac13735ac1152ce210cb | |
| parent | e753247b061a1bae974b7014774c9cc700dd8a0e (diff) | |
| download | bcm5719-llvm-9c68aa33e3b5faf943ead491e57c0d9ba77d6424.tar.gz bcm5719-llvm-9c68aa33e3b5faf943ead491e57c0d9ba77d6424.zip  | |
[DAGCombine] convertBuildVecZextToZext - remove duplicate getOpcode() call. NFCI.
llvm-svn: 365269
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index c00f89267fb..96164f3d980 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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<ConstantSDNode>(Op.getOperand(0).getOperand(1)))  | 

