1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

[LoopUnswitch] Correct misleading comments.

Reviewers: reames

Subscribers: llvm-commits

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

llvm-svn: 250317
This commit is contained in:
Chen Li 2015-10-14 19:47:43 +00:00
parent 796feea796
commit fecbc60363

View File

@ -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()),