LoopUnroll: Clean up the maze of initialization for unroll parameters. NFC
authorJustin Bogner <mail@justinbogner.com>
Tue, 12 Jan 2016 00:55:26 +0000 (00:55 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 12 Jan 2016 00:55:26 +0000 (00:55 +0000)
commit1ddf8548048edf89ff31824e56e093739e79d9bd
tree7356e35f759719f2c56292e3031a961256d4acf0
parent9f927315d8a1480f795565db1995f6f54b9a7a74
LoopUnroll: Clean up the maze of initialization for unroll parameters. NFC

The layering of where the various loop unroll parameters are
initialized and overridden here was very confusing, making it pretty
difficult to tell just how the various sources interacted. Instead, we
put all of the initialization logic together in a single function so
that it's obvious what overrides what.

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