summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-20 16:42:33 +0000
committerDan Gohman <gohman@apple.com>2008-12-20 16:42:33 +0000
commit24fe9a1dc285bdb39fbf4262fa8958c7dc0b1d9f (patch)
treec56200628ac03a3a9f1ece21efa791bb51239db7 /llvm/lib/CodeGen
parentbb92a1b8154ac70f907ad9178ecb1ceb3eed4266 (diff)
downloadbcm5719-llvm-24fe9a1dc285bdb39fbf4262fa8958c7dc0b1d9f.tar.gz
bcm5719-llvm-24fe9a1dc285bdb39fbf4262fa8958c7dc0b1d9f.zip
Use SmallVector's pop_back_val.
llvm-svn: 61277
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAG.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAG.cpp b/llvm/lib/CodeGen/ScheduleDAG.cpp
index 59fd341e31a..3ec538cf2fc 100644
--- a/llvm/lib/CodeGen/ScheduleDAG.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAG.cpp
@@ -122,8 +122,7 @@ void SUnit::setDepthDirty() {
SmallVector<SUnit*, 8> WorkList;
WorkList.push_back(this);
while (!WorkList.empty()) {
- SUnit *SU = WorkList.back();
- WorkList.pop_back();
+ SUnit *SU = WorkList.pop_back_val();
if (!SU->isDepthCurrent) continue;
SU->isDepthCurrent = false;
for (SUnit::const_succ_iterator I = SU->Succs.begin(),
@@ -136,8 +135,7 @@ void SUnit::setHeightDirty() {
SmallVector<SUnit*, 8> WorkList;
WorkList.push_back(this);
while (!WorkList.empty()) {
- SUnit *SU = WorkList.back();
- WorkList.pop_back();
+ SUnit *SU = WorkList.pop_back_val();
if (!SU->isHeightCurrent) continue;
SU->isHeightCurrent = false;
for (SUnit::const_pred_iterator I = SU->Preds.begin(),
OpenPOWER on IntegriCloud