diff options
author | Kazu Hirata <kazu@google.com> | 2021-12-04 08:48:04 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-12-04 08:48:05 -0800 |
commit | ca2f53897a2f2a60d8cb1538d5fcf930d814e9f5 (patch) | |
tree | cd2bcfd63e9420e1fb854e1a7497afebceeca658 /llvm/lib/CodeGen/RegAllocGreedy.cpp | |
parent | 8bd62119f9e9b0ee92cb7a78d1161e86293a8163 (diff) | |
download | llvm-ca2f53897a2f2a60d8cb1538d5fcf930d814e9f5.zip llvm-ca2f53897a2f2a60d8cb1538d5fcf930d814e9f5.tar.gz llvm-ca2f53897a2f2a60d8cb1538d5fcf930d814e9f5.tar.bz2 |
[CodeGen] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 50411c1..9eab874 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -1769,8 +1769,8 @@ void RAGreedy::splitAroundRegion(LiveRangeEdit &LREdit, // the ActiveBlocks list with each candidate. We need to filter out // duplicates. BitVector Todo = SA->getThroughBlocks(); - for (unsigned c = 0; c != UsedCands.size(); ++c) { - ArrayRef<unsigned> Blocks = GlobalCand[UsedCands[c]].ActiveBlocks; + for (unsigned UsedCand : UsedCands) { + ArrayRef<unsigned> Blocks = GlobalCand[UsedCand].ActiveBlocks; for (unsigned Number : Blocks) { if (!Todo.test(Number)) continue; |