[PATCH] D13738: [LoopUnswitch] Correct misleading comments.
Chen Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 12:18:22 PDT 2015
chenli created this revision.
chenli added a reviewer: reames.
chenli added a subscriber: llvm-commits.
http://reviews.llvm.org/D13738
Files:
lib/Transforms/Scalar/LoopUnswitch.cpp
Index: lib/Transforms/Scalar/LoopUnswitch.cpp
===================================================================
--- lib/Transforms/Scalar/LoopUnswitch.cpp
+++ lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -487,8 +487,7 @@
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()),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13738.37371.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/c6a95ceb/attachment.bin>
More information about the llvm-commits
mailing list