[Unroll] Refactor the accumulation of optimized instruction costs into
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 May 2015 02:47:29 +0000 (02:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 May 2015 02:47:29 +0000 (02:47 +0000)
commit9233137390a935ee2834f82a627c9fde5402db04
tree3258b8480478a42621a81387955705bc10c5e444
parent2c78f9499c162b3448aac585374e7d5d52f64605
[Unroll] Refactor the accumulation of optimized instruction costs into
a single location.

This reduces code duplication a bit and will also pave the way for
a better separation between the visitation algorithm and the unroll
analysis.

No functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp