LoopRotate: Convert the methods of LoopRotate to utility functions. NFC
authorJustin Bogner <mail@justinbogner.com>
Mon, 14 Dec 2015 23:22:48 +0000 (23:22 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 14 Dec 2015 23:22:48 +0000 (23:22 +0000)
commite5305e5a2eb63b73f195241a5df101dc06d22a09
tree8ccfc5cb5a3b6c61f85a2eccf04a4d6c29662d58
parent1f7bf8393e8a8e1b85f1b1e7e138aaa90a024635
LoopRotate: Convert the methods of LoopRotate to utility functions. NFC

This moves the actual work to do loop rotation into standalone
functions with the analysis results they need passed in as arguments,
leaving the class itself as a relatively simple shim. This will make
the functions easy to reuse when we're ready to port this
transformation to the new pass manager.

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