We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab95ed5 commit a2f659cCopy full SHA for a2f659c
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -697,10 +697,9 @@ void StructurizeCFG::findUndefBlocks(
697
// undefined value for the PHI being reconstructed.
698
while (!Stack.empty()) {
699
BasicBlock *Current = Stack.pop_back_val();
700
- if (VisitedBlock.contains(Current))
+ if (!VisitedBlock.insert(Current).second)
701
continue;
702
703
- VisitedBlock.insert(Current);
704
if (FlowSet.contains(Current)) {
705
for (auto P : predecessors(Current))
706
Stack.push_back(P);
0 commit comments