summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/VLIWMachineScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/VLIWMachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/VLIWMachineScheduler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/VLIWMachineScheduler.cpp b/llvm/lib/CodeGen/VLIWMachineScheduler.cpp
index fc1cbfefb0db..0cddf59d0ca2 100644
--- a/llvm/lib/CodeGen/VLIWMachineScheduler.cpp
+++ b/llvm/lib/CodeGen/VLIWMachineScheduler.cpp
@@ -130,12 +130,12 @@ bool VLIWResourceModel::isResourceAvailable(SUnit *SU, bool IsTop) {
// Now see if there are no other dependencies to instructions already
// in the packet.
if (IsTop) {
- for (unsigned i = 0, e = Packet.size(); i != e; ++i)
- if (hasDependence(Packet[i], SU))
+ for (const SUnit *U : Packet)
+ if (hasDependence(U, SU))
return false;
} else {
- for (unsigned i = 0, e = Packet.size(); i != e; ++i)
- if (hasDependence(SU, Packet[i]))
+ for (const SUnit *U : Packet)
+ if (hasDependence(SU, U))
return false;
}
return true;