mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 09:14:30 +00:00
[RegionPass] Some minor cleanups
No functional change is intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55bd48f157
commit
2666c82a8d
@ -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(Function &F) {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user