File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ struct AllSwitchPaths {
618
618
619
619
VisitedBlocks UniqueBlocks;
620
620
for (auto *IncomingBB : Phi->blocks ()) {
621
- if (Res.size () >= MaxNumPaths)
621
+ if (Res.size () >= MaxNumPaths)
622
622
break ;
623
623
if (!UniqueBlocks.insert (IncomingBB).second )
624
624
continue ;
@@ -659,7 +659,7 @@ struct AllSwitchPaths {
659
659
getPathsFromStateDefMap (StateDef, IncomingPhi, VB);
660
660
for (ThreadingPath &Path : PredPaths) {
661
661
Path.push_back (PhiBB);
662
- if (Res.size () >= MaxNumPaths)
662
+ if (Res.size () >= MaxNumPaths)
663
663
break ;
664
664
Res.push_back (std::move (Path));
665
665
}
@@ -683,10 +683,10 @@ struct AllSwitchPaths {
683
683
ThreadingPath NewPath (Path);
684
684
NewPath.appendExcludingFirst (IPath);
685
685
NewPath.push_back (PhiBB);
686
- if (Res.size () >= MaxNumPaths) {
686
+ if (Res.size () >= MaxNumPaths) {
687
687
VB.erase (PhiBB);
688
688
return Res;
689
- }
689
+ }
690
690
Res.push_back (NewPath);
691
691
}
692
692
}
You can’t perform that action at this time.
0 commit comments