[LoopReroll] Refactor most of reroll() into a helper class
authorJames Molloy <james.molloy@arm.com>
Thu, 29 Jan 2015 13:48:05 +0000 (13:48 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 29 Jan 2015 13:48:05 +0000 (13:48 +0000)
commita11f8ee20869b6a733665b923df406f08d8ad52a
tree33ccb366445fdd79064c551c7e4f02e96ea60730
parent27f7a0622cd2dfeeb3b16c00f10c07823d315c79
[LoopReroll] Refactor most of reroll() into a helper class

reroll() was slightly monolithic and a pain to modify. Refactor
a bunch of its state from local variables to member variables
of a helper class, and do some trivial simplification while we're
there.

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