diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-04 22:26:55 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-04 22:26:55 -0700 |
commit | bcf4fa458a993a5165fdc417db4d9fea7c123d0f (patch) | |
tree | 580860d6048f04e5ef23da55fbe9da90c6ae0d77 /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 8cc9fa6f78237a5771a5f85eb9ef129ea85a54cf (diff) | |
download | llvm-bcf4fa458a993a5165fdc417db4d9fea7c123d0f.zip llvm-bcf4fa458a993a5165fdc417db4d9fea7c123d0f.tar.gz llvm-bcf4fa458a993a5165fdc417db4d9fea7c123d0f.tar.bz2 |
[CodeGen] Use a range-based for loop (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 6400a88..e757382 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -1810,8 +1810,7 @@ void SwingSchedulerDAG::addConnectedNodes(SUnit *SU, NodeSet &NewSet, static bool isIntersect(SmallSetVector<SUnit *, 8> &Set1, const NodeSet &Set2, SmallSetVector<SUnit *, 8> &Result) { Result.clear(); - for (unsigned i = 0, e = Set1.size(); i != e; ++i) { - SUnit *SU = Set1[i]; + for (SUnit *SU : Set1) { if (Set2.count(SU) != 0) Result.insert(SU); } |