[PATCH] D27911: [LoopUnroll] Keep UP.Count when considering complete unroll

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 19:05:36 PST 2017


haicheng added inline comments.


================
Comment at: lib/Transforms/Scalar/LoopUnrollPass.cpp:761
               UP.Threshold * UP.MaxPercentThresholdBoost / 100)) {
         unsigned Boost =
             getFullUnrollBoostingFactor(*Cost, UP.MaxPercentThresholdBoost);
----------------
I think you need to set UP.Count in this situation, too.


Repository:
  rL LLVM

https://reviews.llvm.org/D27911





More information about the llvm-commits mailing list