diff options
| author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-12 12:02:56 -0400 |
|---|---|---|
| committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-12 12:02:56 -0400 |
| commit | 6b1b97c996d04ea74df6f352ba0c3c19a9afdacf (patch) | |
| tree | 1986c3f12c13381400e00165591d848c3b368f8b | |
| parent | 83506f8b758f5d5e030b3acdbf9ca88d783bc2fb (diff) | |
| download | roux-6b1b97c996d04ea74df6f352ba0c3c19a9afdacf.tar.gz | |
fix bug in predecessors filling code
| -rw-r--r-- | ssa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,13 +108,13 @@ fillpreds(Fn *f) for (b=f->start; b; b=b->link) { if (b->s1) b->s1->npred++; - if (b->s2) + if (b->s2 && b->s2 != b->s1) b->s2->npred++; } for (b=f->start; b; b=b->link) { if (b->s1) addpred(b, b->s1); - if (b->s2) + if (b->s2 && b->s2 != b->s1) addpred(b, b->s2); } } |
