summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-01-13 19:27:22 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-01-13 19:27:22 +0000
commit5dab2bf2932cd8efb7db70ee41473258328e79cb (patch)
treec73546956ec38e24b17a15644f2aa1aaeb694187 /lib/Transforms
parenta5a1e46d0004bc4a2de5d4726e3af8301fab1532 (diff)
downloadllvm-5dab2bf2932cd8efb7db70ee41473258328e79cb.tar.gz
llvm-5dab2bf2932cd8efb7db70ee41473258328e79cb.tar.bz2
llvm-5dab2bf2932cd8efb7db70ee41473258328e79cb.tar.xz
Cosmetic patch for r148132.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/LoopUnswitch.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp
index e7c91420b1..10312e6db9 100644
--- a/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -86,6 +86,7 @@ namespace {
UnswitchedValsMap* CurLoopInstructions;
LoopProperties* CurrentLoopProperties;
+ // Max size of code we can produce on remained iterations.
unsigned MaxSize;
public:
@@ -125,19 +126,6 @@ namespace {
// after RewriteLoopBodyWithConditionConstant rewrites first loop.
std::vector<Loop*> LoopProcessWorklist;
- // TODO: This few lines are here for cosmetic purposes only.
- // Will be removed with the next commit.
- struct LoopProperties {
- unsigned CanBeUnswitchedCount;
- unsigned SizeEstimation;
- };
-
- // TODO: This few lines are here for cosmetic purposes only.
- // Will be removed with the next commit.
- typedef DenseMap<const Loop*, LoopProperties> LoopPropsMap;
- typedef LoopPropsMap::iterator LoopPropsMapIt;
- LoopPropsMap LoopsProperties;
-
LUAnalysisCache BranchesInfo;
bool OptimizeForSize;