Mercurial > lcfOS
diff python/mem2reg.py @ 292:534b94b40aa8
Fixup reorganize
author | Windel Bouwman |
---|---|
date | Wed, 27 Nov 2013 08:06:42 +0100 |
parents | 444b9df2ed99 |
children | 9417caea2eb3 |
line wrap: on
line diff
--- a/python/mem2reg.py Sun Nov 24 11:24:15 2013 +0100 +++ b/python/mem2reg.py Wed Nov 27 08:06:42 2013 +0100 @@ -7,6 +7,7 @@ assert type(allocinst) is Alloc return all(type(use) in [Load, Store] for use in allocinst.value.used_by) + class Mem2RegPromotor(FunctionPass): def promoteSingleBlock(self, ai): v = ai.value