improve loop rotation to use CodeMetrics to analyze the
authorChris Lattner <sabre@nondot.org>
Sun, 2 Jan 2011 07:35:53 +0000 (07:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Jan 2011 07:35:53 +0000 (07:35 +0000)
commitd9e079706e782c5f054322a0d15f063a1a683230
treed4d2b264fb313a72054717b1655f0fd9dc9a8c30
parent8252ad1351594039fa5d6633ff3eef1bafb7fdf9
improve loop rotation to use CodeMetrics to analyze the
size of a loop header instead of its own code size estimator.
This allows it to handle bitcasts etc more precisely.

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