diff options
author | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
commit | 70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6 (patch) | |
tree | f1c41dbbb10c04adfbf4b213ab2c1965dee32d82 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | cf8827a282e6e133d7a153673b1c05c58817d604 (diff) | |
download | bcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.tar.gz bcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.zip |
Use empty() instead of comparing size() with zero.
llvm-svn: 46514
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 250298e2d60..293d0233811 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -230,7 +230,7 @@ void ScheduleDAG::ComputeLatency(SUnit *SU) { void ScheduleDAG::CalculateDepths() { std::vector<std::pair<SUnit*, unsigned> > WorkList; for (unsigned i = 0, e = SUnits.size(); i != e; ++i) - if (SUnits[i].Preds.size() == 0) + if (SUnits[i].Preds.empty()) WorkList.push_back(std::make_pair(&SUnits[i], 0U)); while (!WorkList.empty()) { |