Commit a8f269a
authored
ZJIT: Deduplicate successor and predecessor sets (ruby#15263)
Fixes #877
I didn't consider the ability to have the successor or predecessor sets having duplicates when originally crafting the Iongraph support PR, but have added this to prevent that happening in the future.
I don't think it interferes with the underlying Iongraph implementation, but it doesn't really make sense.
I think this kind of behaviour happens when there are multiple jump instructions that go to the same basic block within a given block.1 parent 4802725 commit a8f269a
2 files changed
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
5849 | 5849 | | |
5850 | 5850 | | |
5851 | 5851 | | |
5852 | | - | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
5853 | 5859 | | |
5854 | 5860 | | |
5855 | 5861 | | |
| |||
5867 | 5873 | | |
5868 | 5874 | | |
5869 | 5875 | | |
5870 | | - | |
| 5876 | + | |
| 5877 | + | |
5871 | 5878 | | |
5872 | 5879 | | |
5873 | 5880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3484 | 3484 | | |
3485 | 3485 | | |
3486 | 3486 | | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
3487 | 3508 | | |
3488 | 3509 | | |
3489 | 3510 | | |
| |||
0 commit comments