diff python/ir/function.py @ 270:cdc76d183bcc

first register allocator
author Windel Bouwman
date Mon, 19 Aug 2013 21:14:28 +0200
parents 5f8c04a8d26b
children cf7d5fb7d9c8
line wrap: on
line diff
--- a/python/ir/function.py	Sun Aug 18 17:43:18 2013 +0200
+++ b/python/ir/function.py	Mon Aug 19 21:14:28 2013 +0200
@@ -28,7 +28,8 @@
                     bbs.append(sb)
                     worklist.append(sb)
         bbs.remove(self.entry)
-        bbs.remove(self.epiloog)
+        if self.epiloog in bbs:
+            bbs.remove(self.epiloog)
         bbs.insert(0, self.entry)
         bbs.append(self.epiloog)
         return bbs