diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-07-14 23:43:29 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-07-14 23:43:29 +0000 |
commit | 7e64ef06e6e6af9d16fedc37cd17a74d03199210 (patch) | |
tree | 63ac567a909339b4be125aa47ef69a4a20355a14 /llvm/lib/Target/Hexagon | |
parent | deee61e4344f26f865cf9ce62c6d7b1e59956fc8 (diff) | |
download | bcm5719-llvm-7e64ef06e6e6af9d16fedc37cd17a74d03199210.tar.gz bcm5719-llvm-7e64ef06e6e6af9d16fedc37cd17a74d03199210.zip |
Use more foreach loops in SelectionDAG. NFC
llvm-svn: 242249
Diffstat (limited to 'llvm/lib/Target/Hexagon')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp index 9123057e60d..523d6eb0c2c 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp @@ -1345,8 +1345,8 @@ bool HexagonDAGToDAGISel::isConstExtProfitable(SDNode *N) const { void HexagonDAGToDAGISel::PreprocessISelDAG() { SelectionDAG &DAG = *CurDAG; std::vector<SDNode*> Nodes; - for (auto I = DAG.allnodes_begin(), E = DAG.allnodes_end(); I != E; ++I) - Nodes.push_back(I); + for (SDNode &Node : DAG.allnodes()) + Nodes.push_back(&Node); // Simplify: (or (select c x 0) z) -> (select c (or x z) z) // (or (select c 0 y) z) -> (select c z (or y z)) |