diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index e7c91420b17..10312e6db91 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 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 LoopPropsMap; - typedef LoopPropsMap::iterator LoopPropsMapIt; - LoopPropsMap LoopsProperties; - LUAnalysisCache BranchesInfo; bool OptimizeForSize;