Commit 73ce961
committed
[JumpThreading] Remove deleted BB from Unreachable
Although an unreachable BB is skipped by processBlock, its successor can
still be handled by processBlock, and maybeMergeBasicBlockIntoOnlyPred
may merge the two BBs and delete the unreachable BB. Then the garbage
pointer is left in Unreachable set. This patch removes the invalid BB
pointer from the Unreachable set.1 parent 16a5f7e commit 73ce961
File tree
2 files changed
+9
-3
lines changed- llvm
- include/llvm/Transforms/Scalar
- lib/Transforms/Scalar
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | 310 | | |
314 | 311 | | |
315 | 312 | | |
| 313 | + | |
| 314 | + | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
1902 | 1901 | | |
1903 | 1902 | | |
1904 | 1903 | | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
1905 | 1907 | | |
1906 | 1908 | | |
1907 | 1909 | | |
| |||
0 commit comments