mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
skip deleted phis in use width scan
This commit is contained in:
parent
8d5b86ac4c
commit
120f316162
8
copy.c
8
copy.c
@ -60,7 +60,13 @@ usewidthle(Fn *fn, Ref r, int w)
|
||||
switch (u->type) {
|
||||
case UPhi:
|
||||
p = u->u.phi;
|
||||
if (p->visit)
|
||||
/* during gvn, phi nodes may be
|
||||
* replaced by other temps; in
|
||||
* this case, the replaced phi
|
||||
* uses are added to the
|
||||
* replacement temp uses and
|
||||
* Phi.to is set to R */
|
||||
if (p->visit || req(p->to, R))
|
||||
continue;
|
||||
p->visit = 1;
|
||||
b = usewidthle(fn, p->to, w);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user