[llvm] r250317 - [LoopUnswitch] Correct misleading comments.

Chen Li via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 12:47:43 PDT 2015


Author: chenli
Date: Wed Oct 14 14:47:43 2015
New Revision: 250317

URL: http://llvm.org/viewvc/llvm-project?rev=250317&view=rev
Log:
[LoopUnswitch] Correct misleading comments.

Reviewers: reames

Subscribers: llvm-commits

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

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=250317&r1=250316&r2=250317&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Wed Oct 14 14:47:43 2015
@@ -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()),




More information about the llvm-commits mailing list