File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/SILOptimizer/LoopTransforms Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -488,8 +488,12 @@ class LoopUnrolling : public SILFunctionTransform {
488
488
auto *Fun = getFunction ();
489
489
SILLoopInfo *LoopInfo = PM->getAnalysis <SILLoopAnalysis>()->get (Fun);
490
490
491
+ LLVM_DEBUG (llvm::dbgs () << " Loop Unroll running on function : "
492
+ << Fun->getName () << " \n " );
493
+
491
494
// Collect innermost loops.
492
495
SmallVector<SILLoop *, 16 > InnermostLoops;
496
+
493
497
for (auto *Loop : *LoopInfo) {
494
498
SmallVector<SILLoop *, 8 > Worklist;
495
499
Worklist.push_back (Loop);
@@ -503,11 +507,10 @@ class LoopUnrolling : public SILFunctionTransform {
503
507
}
504
508
}
505
509
506
- if (InnermostLoops.empty ())
510
+ if (InnermostLoops.empty ()) {
511
+ LLVM_DEBUG (llvm::dbgs () << " No innermost loops\n " );
507
512
return ;
508
-
509
- LLVM_DEBUG (llvm::dbgs () << " Loop Unroll running on function : "
510
- << Fun->getName () << " \n " );
513
+ }
511
514
512
515
// Try to unroll innermost loops.
513
516
for (auto *Loop : InnermostLoops)
You can’t perform that action at this time.
0 commit comments