[llvm] r276000 - [RegionPass] Some minor cleanups
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 10:50:27 PDT 2016
Author: majnemer
Date: Tue Jul 19 12:50:27 2016
New Revision: 276000
URL: http://llvm.org/viewvc/llvm-project?rev=276000&view=rev
Log:
[RegionPass] Some minor cleanups
No functional change is intended.
Modified:
llvm/trunk/lib/Analysis/RegionPass.cpp
Modified: llvm/trunk/lib/Analysis/RegionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/RegionPass.cpp?rev=276000&r1=275999&r2=276000&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/RegionPass.cpp (original)
+++ llvm/trunk/lib/Analysis/RegionPass.cpp Tue Jul 19 12:50:27 2016
@@ -10,7 +10,7 @@
// This file implements RegionPass and RGPassManager. All region optimization
// and transformation passes are derived from RegionPass. RGPassManager is
// responsible for managing RegionPasses.
-// most of these codes are COPY from LoopPass.cpp
+// Most of this code has been COPIED from LoopPass.cpp
//
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/RegionPass.h"
@@ -64,9 +64,7 @@ bool RGPassManager::runOnFunction(Functi
return false;
// Initialization
- for (std::deque<Region *>::const_iterator I = RQ.begin(), E = RQ.end();
- I != E; ++I) {
- Region *R = *I;
+ for (Region *R : RQ) {
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
RegionPass *RP = (RegionPass *)getContainedPass(Index);
Changed |= RP->doInitialization(R, *this);
More information about the llvm-commits
mailing list