[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)
commit5f255eb48f1a4b4c022ee28e46bc91fb4571e0c3
tree7a33ee617dc0ce72e3d4483a9e5168e854918471
parentb4c7a47cd8f33aa8b2dc30cbfa03de8fb213028b
[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.

llvm-svn: 227439
llvm/lib/Transforms/Scalar/LoopRerollPass.cpp