Revert the optimization re-added in 1946acf3a4
That change needs much more analysis and thought. And we need more testcases.
This commit is contained in:
@@ -358,7 +358,10 @@ class deadcode(object):
|
||||
# Replacing j with i+1 in llOwnerSay will produce wrong code because
|
||||
# the name i is redefined after j is assigned. shrinknames prevents
|
||||
# that.
|
||||
if not self.shrinknames or not node.SEF:
|
||||
# FIXME: shrinknames and SEF are not enough guarantee. This needs
|
||||
# analyzing a control flow graph.
|
||||
#if not self.shrinknames or not node.SEF:
|
||||
if True or not self.shrinknames or not node.SEF:
|
||||
return False
|
||||
|
||||
if nt not in ('VECTOR', 'ROTATION'):
|
||||
|
||||
Reference in New Issue
Block a user