Minor unroll pass refacoring.
authorEvgeny Stupachenko <evstupac@gmail.com>
Wed, 9 Nov 2016 19:56:39 +0000 (19:56 +0000)
committerEvgeny Stupachenko <evstupac@gmail.com>
Wed, 9 Nov 2016 19:56:39 +0000 (19:56 +0000)
commitc2698cd90313bdd5eab9cc5744794acaba755b29
tree10700925746f1785bd92389f58cd82dc999eeffa
parent26f28a283691c83782984323270087b8fd412b4a
Minor unroll pass refacoring.

Summary:
Unrolled Loop Size calculations moved to a function.
Constant representing number of optimized instructions
 when "back edge" becomes "fall through" replaced with
 variable.
Some comments added.

Reviewers: mzolotukhin

Differential Revision: http://reviews.llvm.org/D21719

From: Evgeny Stupachenko <evstupac@gmail.com>
llvm-svn: 286389
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp