aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff options
context:
space:
mode:
authorChen Li <meloli87@gmail.com>2015-10-14 19:47:43 +0000
committerChen Li <meloli87@gmail.com>2015-10-14 19:47:43 +0000
commit567aa7ab307030bbe239dd0062dc6e3966da2180 (patch)
tree23618824cb8b03b5caf1941f351711b0109399b7 /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
parent3cf3cfc4c57f4236f2c804f520be19850874dbd3 (diff)
downloadllvm-567aa7ab307030bbe239dd0062dc6e3966da2180.zip
llvm-567aa7ab307030bbe239dd0062dc6e3966da2180.tar.gz
llvm-567aa7ab307030bbe239dd0062dc6e3966da2180.tar.bz2
[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/Scalar/LoopUnswitch.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index d55fad0..8c260c7 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()),