llvm.org GIT mirror llvm / 8610edd
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314254 91177308-0d34-0410-b5e6-96231b3b80d8 Jakub Kuderski 2 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
922922 // To dominates From -- nothing to do.
923923 if (ToTN == NCD) return;
924924
925 DT.DFSInfoValid = false;
926
925927 const TreeNodePtr ToIDom = ToTN->getIDom();
926928 DEBUG(dbgs() << "\tNCD " << BlockNamePrinter(NCD) << ", ToIDom "
927929 << BlockNamePrinter(ToIDom) << "\n");