Commit 4f7d190
Fix segfault when running analysis passes after SCCP
SCCPLegacyPassWrapper runs new PM SCCPPass, which can change CFG and delete
basic blocks. The wrapper incorrectly declared DominatorTreeWrapperPass as
preserved without updating the legacy PM DomTree, leaving stale DomTree nodes
that could reference freed BBs and crash later loop analyses.
Fix by removing DomTree preservation in the SCCP wrapper so DT is invalidated
and recomputed when required.1 parent 6788a72 commit 4f7d190
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments