Commit bff7618
committed
[MoveChecker] Don't add defs to liveness.
When extending liveness, the instructions prior to a preexisting destroy
are added to liveness. If that prior instruction is the def, adding it
to liveness results in multi-def liveness understanding that there is a
prior def.
Fixes a bug exposed by adding coroutine ends to liveness rather than
function ends.1 parent c06d5db commit bff7618
File tree
2 files changed
+16
-1
lines changed- lib/SILOptimizer/Mandatory
- test/SILOptimizer
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3436 | 3436 | | |
3437 | 3437 | | |
3438 | 3438 | | |
3439 | | - | |
3440 | 3439 | | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
3441 | 3444 | | |
3442 | 3445 | | |
3443 | 3446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
0 commit comments