mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 17:46:06 +00:00
[RegionPass] Some minor cleanups
No functional change is intended. llvm-svn: 276000
This commit is contained in:
parent
1a4576e79d
commit
f29b7bafb6
@ -10,7 +10,7 @@
|
|||||||
// This file implements RegionPass and RGPassManager. All region optimization
|
// This file implements RegionPass and RGPassManager. All region optimization
|
||||||
// and transformation passes are derived from RegionPass. RGPassManager is
|
// and transformation passes are derived from RegionPass. RGPassManager is
|
||||||
// responsible for managing RegionPasses.
|
// 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"
|
#include "llvm/Analysis/RegionPass.h"
|
||||||
@ -64,9 +64,7 @@ bool RGPassManager::runOnFunction(Function &F) {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Initialization
|
// Initialization
|
||||||
for (std::deque<Region *>::const_iterator I = RQ.begin(), E = RQ.end();
|
for (Region *R : RQ) {
|
||||||
I != E; ++I) {
|
|
||||||
Region *R = *I;
|
|
||||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||||
RegionPass *RP = (RegionPass *)getContainedPass(Index);
|
RegionPass *RP = (RegionPass *)getContainedPass(Index);
|
||||||
Changed |= RP->doInitialization(R, *this);
|
Changed |= RP->doInitialization(R, *this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user