summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
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
commit0a920fa2101a55e337909fa9226f7bb38943069e (patch)
treed22f97d82ccf7e6d10c510063a64115504d02054 /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
parentcbcbdb237ff40de6909a21e35da4488254ca9396 (diff)
downloadbcm5719-llvm-0a920fa2101a55e337909fa9226f7bb38943069e.tar.gz
bcm5719-llvm-0a920fa2101a55e337909fa9226f7bb38943069e.zip
Cosmetic patch for r148132.
llvm-svn: 148133
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index e7c91420b17..10312e6db91 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud