summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-05-25 20:17:39 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-05-25 20:17:39 +0000
commitfdbc64beeaf50d5dacf340dfba5fa21d5714a147 (patch)
tree2bbd0ec9003224b651aa1f619a2ed3a1e985d923 /llvm/lib
parent12e3bde64ba7686996701489f3b07b3b5ae04cbf (diff)
downloadbcm5719-llvm-fdbc64beeaf50d5dacf340dfba5fa21d5714a147.tar.gz
bcm5719-llvm-fdbc64beeaf50d5dacf340dfba5fa21d5714a147.zip
Simplify std::all_of predicate (to one line) by using llvm::all_of. NFCI.
llvm-svn: 270749
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 1e679ba3f0a..5084d054aff 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2871,8 +2871,7 @@ static SDValue FoldCONCAT_VECTORS(SDLoc DL, EVT VT, ArrayRef<SDValue> Ops,
return Ops[0];
// Concat of UNDEFs is UNDEF.
- if (std::all_of(Ops.begin(), Ops.end(),
- [](SDValue Op) { return Op.isUndef(); }))
+ if (llvm::all_of(Ops, [](SDValue Op) { return Op.isUndef(); }))
return DAG.getUNDEF(VT);
// A CONCAT_VECTOR with all UNDEF/BUILD_VECTOR operands can be
OpenPOWER on IntegriCloud