diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-06-11 09:00:37 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-06-11 09:00:37 +0000 |
| commit | ef6ae7030dc9201597af59579854d0d04d4fa7b6 (patch) | |
| tree | 4d0b06adb447e021ff1b544ac01f185336e330bf /polly/lib/Analysis/ScopDetection.cpp | |
| parent | b05edfc10de740a3380289b44038191beb3a298f (diff) | |
| download | bcm5719-llvm-ef6ae7030dc9201597af59579854d0d04d4fa7b6.tar.gz bcm5719-llvm-ef6ae7030dc9201597af59579854d0d04d4fa7b6.zip | |
ScopDetection: Make enum function-local
The 'Color' enum is only used for irreducible control flow detection. Johannes
already moved this enum in r270054 from ScopDetection.h to ScopDetection.cpp to
limit its scope to a single cpp file. We now move it into the only function
where this enum is needed to make clear that it is only needed locally in this
single function.
Thanks to Johannes for pointing out this cleanup opportunity.
llvm-svn: 272462
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 5cc333624a4..c4bb5153240 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -1380,14 +1380,14 @@ void ScopDetection::emitMissedRemarks(const Function &F) { } } -/// @brief Enum for coloring BBs in Region. -/// -/// WHITE - Unvisited BB in DFS walk. -/// GREY - BBs which are currently on the DFS stack for processing. -/// BLACK - Visited and completely processed BB. -enum Color { WHITE, GREY, BLACK }; - bool ScopDetection::isReducibleRegion(Region &R, DebugLoc &DbgLoc) const { + /// @brief Enum for coloring BBs in Region. + /// + /// WHITE - Unvisited BB in DFS walk. + /// GREY - BBs which are currently on the DFS stack for processing. + /// BLACK - Visited and completely processed BB. + enum Color { WHITE, GREY, BLACK }; + BasicBlock *REntry = R.getEntry(); BasicBlock *RExit = R.getExit(); // Map to match the color of a BasicBlock during the DFS walk. |

