[LoopUnswitch] Correct misleading comments.
authorChen Li <meloli87@gmail.com>
Wed, 14 Oct 2015 19:47:43 +0000 (19:47 +0000)
committerChen Li <meloli87@gmail.com>
Wed, 14 Oct 2015 19:47:43 +0000 (19:47 +0000)
Reviewers: reames

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D13738

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250317 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopUnswitch.cpp

index d55fad0f1faceaad834797e8028f48ea91ca63e8..8c260c7c96564540da26aec85a9c1aa0b65b1c36 100644 (file)
@@ -487,8 +487,7 @@ bool LoopUnswitch::processCurrentLoop() {
 
   LLVMContext &Context = loopHeader->getContext();
 
-  // Probably we reach the quota of branches for this loop. If so
-  // stop unswitching.
+  // Analyze loop cost, and stop unswitching if loop content can not be duplicated.
   if (!BranchesInfo.countLoop(
           currentLoop, getAnalysis<TargetTransformInfoWrapperPass>().getTTI(
                            *currentLoop->getHeader()->getParent()),