Skip to content

Commit

Permalink
[LoopUnswitch] Correct misleading comments.
Browse files Browse the repository at this point in the history
Reviewers: reames

Subscribers: llvm-commits

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

llvm-svn: 250317
  • Loading branch information
lic9 committed Oct 14, 2015
1 parent 3cf3cfc commit 567aa7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 567aa7a

Please sign in to comment.