summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-11 21:15:00 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-11 21:15:00 +0000
commit0a16c228463ca58c7828b5fd9bdd10b3ba612bbf (patch)
tree761d8030441a22b5acb0f154ff4586eb6679833f /llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
parent1b689da04e3f8f2c83b1365853a8af39a27b30ea (diff)
downloadbcm5719-llvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.tar.gz
bcm5719-llvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.zip
Use range algorithms instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278417
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp b/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
index 5f008f5157c..e67389217e8 100644
--- a/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
@@ -245,7 +245,7 @@ bool HexagonDCE::rewrite(NodeAddr<InstrNode*> IA, SetVector<NodeId> &Remove) {
if (&DA.Addr->getOp() != &Op)
continue;
Defs = DFG.getRelatedRefs(IA, DA);
- if (!std::all_of(Defs.begin(), Defs.end(), IsDead))
+ if (!all_of(Defs, IsDead))
return false;
break;
}
OpenPOWER on IntegriCloud