[PATCH] D13738: [LoopUnswitch] Correct misleading comments.
Chen Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 12:49:40 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL250317: [LoopUnswitch] Correct misleading comments. (authored by chenli).
Changed prior to commit:
http://reviews.llvm.org/D13738?vs=37371&id=37374#toc
Repository:
rL LLVM
http://reviews.llvm.org/D13738
Files:
llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Index: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ llvm/trunk/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.37374.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/b882afaf/attachment.bin>
More information about the llvm-commits
mailing list