Commit graph

6 commits

Author SHA1 Message Date
Quentin Carbonneaux
1bb7652484 deduplicate loadsz & storesz 2017-02-24 09:50:35 -05:00
Quentin Carbonneaux
7e1c1f9f77 use uint for block ids 2017-02-06 14:36:27 -05:00
Quentin Carbonneaux
2b4ece6f99 use a less obtuse api for vnew() 2017-01-12 22:31:51 -05:00
Quentin Carbonneaux
52cc53185e loosen assertion in load elimination
The assertion was invalid, I was assuming il->blk was
b when writing it.  The new assertion should be right:
If the loop level were to decrease we would get out of
a cycle in cfg, this should not be possible unless we
go through a block with more than 1 predecessor.
2016-12-28 06:43:05 -05:00
Quentin Carbonneaux
d04ba5eae8 fix wrong assertion in load elimination
The assertion fails incorrectly on a block right
after the end of a loop.
2016-12-21 09:54:50 -05:00
Quentin Carbonneaux
3f147ed2e0 implement a simple load elimination pass 2016-12-12 22:17:03 -05:00