diff options
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnrollPass.cpp')
| -rw-r--r-- | lib/Transforms/Scalar/LoopUnrollPass.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopUnrollPass.cpp b/lib/Transforms/Scalar/LoopUnrollPass.cpp index 7b1d6446a24a5..15e7da5e1a7ae 100644 --- a/lib/Transforms/Scalar/LoopUnrollPass.cpp +++ b/lib/Transforms/Scalar/LoopUnrollPass.cpp @@ -882,7 +882,7 @@ static bool computeUnrollCount(    }    // Check if the runtime trip count is too small when profile is available. -  if (L->getHeader()->getParent()->getEntryCount()) { +  if (L->getHeader()->getParent()->hasProfileData()) {      if (auto ProfileTripCount = getLoopEstimatedTripCount(L)) {        if (*ProfileTripCount < FlatLoopTripCountThreshold)          return false;  | 
