summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
committerDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
commit70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6 (patch)
treef1c41dbbb10c04adfbf4b213ab2c1965dee32d82 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
parentcf8827a282e6e133d7a153673b1c05c58817d604 (diff)
downloadbcm5719-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.cpp2
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()) {
OpenPOWER on IntegriCloud