Skip to content

Commit 1e584a7

Browse files
committed
[Dominators] Invalidate DFS numbers upon edge deletions
This patch makes DeleteEdge correctly invalidate DFS numbers in the incremental updater. This should fix PR34466 and related bugs. llvm-svn: 314254
1 parent eda7a86 commit 1e584a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/Support/GenericDomTreeConstruction.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,8 @@ struct SemiNCAInfo {
923923
// To dominates From -- nothing to do.
924924
if (ToTN == NCD) return;
925925

926+
DT.DFSInfoValid = false;
927+
926928
const TreeNodePtr ToIDom = ToTN->getIDom();
927929
DEBUG(dbgs() << "\tNCD " << BlockNamePrinter(NCD) << ", ToIDom "
928930
<< BlockNamePrinter(ToIDom) << "\n");

0 commit comments

Comments
 (0)