LoopUnrollPass: Use variable "Threshold" instead of "CurrentThreshold" when
authorHongbin Zheng <etherzhhb@gmail.com>
Wed, 4 Apr 2012 11:44:08 +0000 (11:44 +0000)
committerHongbin Zheng <etherzhhb@gmail.com>
Wed, 4 Apr 2012 11:44:08 +0000 (11:44 +0000)
commit00b73a5e443d49d68f59a5fb517e940842423ae6
treee4533680211bea0fc9d6f260672446eefa0f80da
parenta95b4ebf3c17f0069b8cea3841d66395eaf6d4e1
LoopUnrollPass: Use variable "Threshold" instead of "CurrentThreshold" when
  reducing unroll count, otherwise the reduced unroll count is not taking
  the "OptimizeForSize" attribute into account.

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