[llvm-commits] [llvm] r148133 - /llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Stepan Dyatkovskiy
stpworld at narod.ru
Fri Jan 13 11:27:22 PST 2012
Author: dyatkovskiy
Date: Fri Jan 13 13:27:22 2012
New Revision: 148133
URL: http://llvm.org/viewvc/llvm-project?rev=148133&view=rev
Log:
Cosmetic patch for r148132.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=148133&r1=148132&r2=148133&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Fri Jan 13 13:27:22 2012
@@ -86,6 +86,7 @@
UnswitchedValsMap* CurLoopInstructions;
LoopProperties* CurrentLoopProperties;
+ // Max size of code we can produce on remained iterations.
unsigned MaxSize;
public:
@@ -125,19 +126,6 @@
// 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;
More information about the llvm-commits
mailing list