diff options
| author | 2023-06-21 12:32:32 +0200 | |
|---|---|---|
| committer | 2023-06-21 12:32:32 +0200 | |
| commit | 995fd23ecd5de710a6f587d29af2874b1fb4756d (patch) | |
| tree | c8c8d95d51a25abbfc3ea08f984b8a1720cacc4b /ssa.c | |
| parent | 2e4d5123544b86ec13e166dc94da43c850a588f2 (diff) | |
explicitly store predecessors in each block
Diffstat (limited to 'ssa.c')
| -rw-r--r-- | ssa.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,9 +30,9 @@ ssauses(struct function *fn) do { for (int i = 0; i < blk->phi.n; ++i) { int ins = blk->phi.p[i]; - struct phi *phi = &phitab.p[instrtab[ins].l.i]; - for (int i = 0; i < phi->n; ++i) { - USE(phi->ref[i], 0, ins); + union ref *phi = phitab.p[instrtab[ins].l.i]; + for (int i = 0; i < blk->npred; ++i) { + USE(phi[i], 0, ins); } } for (int i = 0; i < blk->ins.n; ++i) { |