Files
llvm-project/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
Mingjie Xu 227edfb2f4 [CodeGenPrepare][NFC] Reland: Update the dominator tree instead of rebuilding it (#179040)
The original differential revision is https://reviews.llvm.org/D153638

Reverted in
f5b5a30858
because of causing a clang crash.

This patch relands it with the crash fixed. Call `DTU->flush()` in each
iteration of `while (MadeChange)`
loop, flush all awaiting BasicBlocks deletion, and prevent iterator
invalidation.
2026-03-31 09:01:11 +08:00

19 KiB