diff options
author | Chen Li <meloli87@gmail.com> | 2015-10-14 19:47:43 +0000 |
---|---|---|
committer | Chen Li <meloli87@gmail.com> | 2015-10-14 19:47:43 +0000 |
commit | 567aa7ab307030bbe239dd0062dc6e3966da2180 (patch) | |
tree | 23618824cb8b03b5caf1941f351711b0109399b7 /llvm/lib/Transforms | |
parent | 3cf3cfc4c57f4236f2c804f520be19850874dbd3 (diff) | |
download | bcm5719-llvm-567aa7ab307030bbe239dd0062dc6e3966da2180.tar.gz bcm5719-llvm-567aa7ab307030bbe239dd0062dc6e3966da2180.zip |
[LoopUnswitch] Correct misleading comments.
Reviewers: reames
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D13738
llvm-svn: 250317
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index d55fad0f1fa..8c260c7c965 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -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()), |