[llvm-commits] [llvm] r122876 - /llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp
Cameron Zwarich
zwarich at apple.com
Wed Jan 5 08:08:47 PST 2011
Author: zwarich
Date: Wed Jan 5 10:08:47 2011
New Revision: 122876
URL: http://llvm.org/viewvc/llvm-project?rev=122876&view=rev
Log:
Use pop_back_val instead of back followed by pop_back.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp?rev=122876&r1=122875&r2=122876&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp Wed Jan 5 10:08:47 2011
@@ -82,8 +82,7 @@
VisitStack.push_back(L->getHeader());
while (!VisitStack.empty()) {
- BasicBlock *BB = VisitStack.back();
- VisitStack.pop_back();
+ BasicBlock *BB = VisitStack.pop_back_val();
// Simplify instructions in the current basic block.
for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE;) {
More information about the llvm-commits
mailing list