fix wrong assertion in load elimination
The assertion fails incorrectly on a block right after the end of a loop.
This commit is contained in:
parent
96f0711dac
commit
d04ba5eae8
1 changed files with 1 additions and 1 deletions
2
load.c
2
load.c
|
@ -260,7 +260,7 @@ def(Slice sl, bits msk, Blk *b, Ins *i, Loc *il)
|
|||
goto Load;
|
||||
if (b->npred == 1) {
|
||||
bp = b->pred[0];
|
||||
assert(bp->loop == il->blk->loop);
|
||||
assert(bp->s2 || bp->loop == il->blk->loop);
|
||||
l = *il;
|
||||
if (bp->s2)
|
||||
l.type = LNoLoad;
|
||||
|
|
Loading…
Add table
Reference in a new issue