mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
refine assertion in cost computation
This commit is contained in:
parent
4f4d4cce6f
commit
eb1df2b81e
@ -94,7 +94,8 @@ fillcost(Fn *fn)
|
|||||||
symuse(p->to, 0, 0, fn);
|
symuse(p->to, 0, 0, fn);
|
||||||
for (a=0; a<p->narg; a++) {
|
for (a=0; a<p->narg; a++) {
|
||||||
n = p->blk[a]->loop;
|
n = p->blk[a]->loop;
|
||||||
assert(b->npred && "invalid cfg");
|
assert(b->npred==p->narg &&
|
||||||
|
"wrong cfg");
|
||||||
n /= b->npred;
|
n /= b->npred;
|
||||||
symuse(p->arg[a], 1, n, fn);
|
symuse(p->arg[a], 1, n, fn);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user