diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-05-25 20:13:39 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-05-25 20:13:39 +0000 |
commit | 0a6b95a60adc64999027539bb9f70fab799b8933 (patch) | |
tree | 293e5d04c5d10b6f79e30095a2ad987b37531ae3 | |
parent | 84f05620641542f8edee4b216c21b9406260e935 (diff) | |
download | bcm5719-llvm-0a6b95a60adc64999027539bb9f70fab799b8933.tar.gz bcm5719-llvm-0a6b95a60adc64999027539bb9f70fab799b8933.zip |
Simplify std::all_of predicate (to one line) by using llvm::all_of. NFCI.
llvm-svn: 270747
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index bf3e1045bc9..6e842f78ca4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -13068,9 +13068,7 @@ SDValue DAGCombiner::visitCONCAT_VECTORS(SDNode *N) { auto IsBuildVectorOrUndef = [](const SDValue &Op) { return ISD::UNDEF == Op.getOpcode() || ISD::BUILD_VECTOR == Op.getOpcode(); }; - bool AllBuildVectorsOrUndefs = - std::all_of(N->op_begin(), N->op_end(), IsBuildVectorOrUndef); - if (AllBuildVectorsOrUndefs) { + if (llvm::all_of(N->ops(), IsBuildVectorOrUndef)) { SmallVector<SDValue, 8> Opnds; EVT SVT = VT.getScalarType(); |